From 788b10ecbc0eb118fea8f022b0f044359629ccfa Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Fri, 10 Feb 2017 00:44:08 +0000 Subject: [PATCH] [LoadCombine] Change test to not use instcombine. llvm-svn: 294682 --- llvm/test/Transforms/LoadCombine/load-combine-aa.ll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/test/Transforms/LoadCombine/load-combine-aa.ll b/llvm/test/Transforms/LoadCombine/load-combine-aa.ll index ad66a1a6387c..5a577516fb47 100644 --- a/llvm/test/Transforms/LoadCombine/load-combine-aa.ll +++ b/llvm/test/Transforms/LoadCombine/load-combine-aa.ll @@ -1,4 +1,4 @@ -; RUN: opt -basicaa -load-combine -instcombine -S < %s | FileCheck %s +; RUN: opt -basicaa -load-combine -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @@ -22,6 +22,7 @@ define i64 @test1(i32* nocapture readonly noalias %a, i32* nocapture readonly no define i64 @test2(i32* nocapture readonly %a, i32* nocapture readonly %b) { ; CHECK-LABEL: @test2 +; CHECK-NOT: load i64 ; CHECK: load i32, i32* ; CHECK: load i32, i32* ; CHECK: ret i64 @@ -44,8 +45,10 @@ define i64 @test2(i32* nocapture readonly %a, i32* nocapture readonly %b) { define i16 @test3() { ; CHECK-LABEL: @test3 +; CHECK-NOT: load i32 ; CHECK: load i16, i16* ; CHECK: store i16 +; CHECK: load i16, i16* ; CHECK: ret i16 %_tmp9 = getelementptr %rec11, %rec11* @str, i16 0, i32 1