[llvm] r294668 - [NewGVN] Fix test so that it doesn't rely on InstCombine anymore.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 15:48:11 PST 2017
Author: davide
Date: Thu Feb 9 17:48:10 2017
New Revision: 294668
URL: http://llvm.org/viewvc/llvm-project?rev=294668&view=rev
Log:
[NewGVN] Fix test so that it doesn't rely on InstCombine anymore.
Modified:
llvm/trunk/test/Transforms/NewGVN/load-constant-mem.ll
Modified: llvm/trunk/test/Transforms/NewGVN/load-constant-mem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NewGVN/load-constant-mem.ll?rev=294668&r1=294667&r2=294668&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/NewGVN/load-constant-mem.ll (original)
+++ llvm/trunk/test/Transforms/NewGVN/load-constant-mem.ll Thu Feb 9 17:48:10 2017
@@ -1,4 +1,4 @@
-; RUN: opt < %s -basicaa -newgvn -instcombine -S | FileCheck %s
+; RUN: opt < %s -basicaa -newgvn -S | FileCheck %s
; PR4189
@G = external constant [4 x i32]
@@ -12,8 +12,10 @@ entry:
ret i32 %C
}
-; CHECK: define i32 @test(i8* %p, i32 %i) #0 {
+; CHECK-LABEL: define i32 @test
; CHECK-NEXT: entry:
-; CHECK-NEXT: store i8 4, i8* %p, align 1
+; CHECK-NEXT: %P = getelementptr [4 x i32], [4 x i32]* @G, i32 0, i32 %i
+; CHECK-NEXT: %A = load i32, i32* %P
+; CHECK-NEXT: store i8 4, i8* %p
; CHECK-NEXT: ret i32 0
; CHECK-NEXT: }
More information about the llvm-commits
mailing list