From: Davide Italiano Date: Thu, 9 Feb 2017 23:48:10 +0000 (+0000) Subject: [NewGVN] Fix test so that it doesn't rely on InstCombine anymore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f223ecabe89be7903a9f3513670b2b2d20c9e84;p=llvm [NewGVN] Fix test so that it doesn't rely on InstCombine anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294668 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/NewGVN/load-constant-mem.ll b/test/Transforms/NewGVN/load-constant-mem.ll index 215258b934c..9bd79f7a142 100644 --- a/test/Transforms/NewGVN/load-constant-mem.ll +++ b/test/Transforms/NewGVN/load-constant-mem.ll @@ -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: }