diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-07-19 23:59:21 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-07-19 23:59:21 +0000 |
commit | 4a96d0e44bd691759f0d4d4f8be9b47cb64d7f64 (patch) | |
tree | c22867d014eddabacd285e46cfb3f2fa3845179c /test/Transforms | |
parent | b97c57a8b7dc268958924b8bcc0e97f70437dff6 (diff) | |
download | external_llvm-4a96d0e44bd691759f0d4d4f8be9b47cb64d7f64.zip external_llvm-4a96d0e44bd691759f0d4d4f8be9b47cb64d7f64.tar.gz external_llvm-4a96d0e44bd691759f0d4d4f8be9b47cb64d7f64.tar.bz2 |
Revert r160529 due to crashes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll | 2 | ||||
-rw-r--r-- | test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll | 20 |
2 files changed, 1 insertions, 21 deletions
diff --git a/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll b/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll index 40862bd..54e8f90 100644 --- a/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll +++ b/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll @@ -17,7 +17,7 @@ define void @test() nounwind ssp { %2 = sext i32 %1 to i64 ; <i64> [#uses=1] %3 = mul i64 %2, ptrtoint (%struct.strchartype* getelementptr (%struct.strchartype* null, i64 1) to i64) ; <i64> [#uses=1] %4 = tail call i8* @malloc(i64 %3) ; <i8*> [#uses=1] -; CHECK-NOT: call i8* @malloc(i64 +; CHECK: call i8* @malloc(i64 %5 = bitcast i8* %4 to %struct.strchartype* ; <%struct.strchartype*> [#uses=1] store %struct.strchartype* %5, %struct.strchartype** @chartypes, align 8 ret void diff --git a/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll b/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll deleted file mode 100644 index 0d5cbf5..0000000 --- a/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: opt -globalopt -S -o - < %s | FileCheck %s - -@test1 = internal global i8* null - -define void @test1a() { -; CHECK: @test1a -; CHECK-NOT: store -; CHECK-NEXT: ret void - store i8* null, i8** @test1 - ret void -} - -define void @test1b(i8* %p) { -; CHECK: @test1b -; CHECK-NEXT: store -; CHECK-NEXT: ret void - store i8* %p, i8** @test1 - ret void -} - |