[llvm-commits] [poolalloc] r155820 - /poolalloc/trunk/test/dsa/extern/extern3.ll
Will Dietz
wdietz2 at illinois.edu
Mon Apr 30 06:33:18 PDT 2012
Author: wdietz2
Date: Mon Apr 30 08:33:18 2012
New Revision: 155820
URL: http://llvm.org/viewvc/llvm-project?rev=155820&view=rev
Log:
Fix extern3 to account for useful malloc-wrapper analysis' effects.
This test was failing because the addition of the malloc-wrapper
saw through the functionality of these simpler wrappers.
Since this is only meant to test that I/E flags are set appropriately,
add some store's to the malloc'd memory to ensure the functions are
not identified as malloc wrappers.
Modified:
poolalloc/trunk/test/dsa/extern/extern3.ll
Modified: poolalloc/trunk/test/dsa/extern/extern3.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/extern/extern3.ll?rev=155820&r1=155819&r2=155820&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/extern/extern3.ll (original)
+++ poolalloc/trunk/test/dsa/extern/extern3.ll Mon Apr 30 08:33:18 2012
@@ -19,6 +19,7 @@
entry:
%0 = tail call noalias i8* @malloc(i64 4) nounwind ; <i8*> [#uses=1]
%ptr = bitcast i8* %0 to i32* ; <i32*> [#uses=1]
+ store i32 5, i32* %ptr ; Throw off malloc-wrapper analysis
ret i32* %ptr
}
@@ -38,6 +39,7 @@
entry:
%0 = tail call noalias i8* @malloc(i64 4) nounwind ; <i8*> [#uses=1]
%ptr = bitcast i8* %0 to i32* ; <i32*> [#uses=1]
+ store i32 5, i32* %ptr ; Throw off malloc-wrapper analysis
ret i32* %ptr
}
More information about the llvm-commits
mailing list