From: Michael J. Spencer Date: Fri, 10 Feb 2017 00:44:08 +0000 (+0000) Subject: [LoadCombine] Change test to not use instcombine. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c45aa0f9ae163efe7db1188fb67646879724dbd8;p=llvm [LoadCombine] Change test to not use instcombine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294682 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/LoadCombine/load-combine-aa.ll b/test/Transforms/LoadCombine/load-combine-aa.ll index ad66a1a6387..5a577516fb4 100644 --- a/test/Transforms/LoadCombine/load-combine-aa.ll +++ b/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