]> granicus.if.org Git - llvm/commitdiff
[LoadCombine] Change test to not use instcombine.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 10 Feb 2017 00:44:08 +0000 (00:44 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 10 Feb 2017 00:44:08 +0000 (00:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294682 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LoadCombine/load-combine-aa.ll

index ad66a1a6387c8b48117c902af5ecc3228be095e1..5a577516fb47d534eb54a3e760437eca2223749b 100644 (file)
@@ -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