summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/PointerTracking/sizes.ll
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-11-06 01:33:24 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-11-06 01:33:24 +0000
commitb9f589977944fad4feaaf709cf2818ac5f98de1b (patch)
tree5eccc709a70cf26793579109c48ad3e7eca7c2be /llvm/test/Analysis/PointerTracking/sizes.ll
parent06ce6506d2db3c42a8609d4746052fddca7e829b (diff)
downloadbcm5719-llvm-b9f589977944fad4feaaf709cf2818ac5f98de1b.tar.gz
bcm5719-llvm-b9f589977944fad4feaaf709cf2818ac5f98de1b.zip
Revert r86077 because it caused crashes in 179.art and 175.vpr on ARM
llvm-svn: 86213
Diffstat (limited to 'llvm/test/Analysis/PointerTracking/sizes.ll')
-rw-r--r--llvm/test/Analysis/PointerTracking/sizes.ll18
1 files changed, 4 insertions, 14 deletions
diff --git a/llvm/test/Analysis/PointerTracking/sizes.ll b/llvm/test/Analysis/PointerTracking/sizes.ll
index 267c3b83e29..c0b0606af0b 100644
--- a/llvm/test/Analysis/PointerTracking/sizes.ll
+++ b/llvm/test/Analysis/PointerTracking/sizes.ll
@@ -31,7 +31,6 @@ entry:
}
declare i32 @bar(i8*)
-declare i32 @bar2(i64*)
define i32 @foo1(i32 %n) nounwind {
entry:
@@ -61,16 +60,11 @@ entry:
ret i32 %add16
}
-define i32 @foo2(i64 %n) nounwind {
+define i32 @foo2(i32 %n) nounwind {
entry:
- %call = tail call i8* @malloc(i64 %n) ; <i8*> [#uses=1]
+ %call = malloc i8, i32 %n ; <i8*> [#uses=1]
; CHECK: %call =
; CHECK: ==> %n elements, %n bytes allocated
- %mallocsize = mul i64 %n, 8 ; <i64> [#uses=1]
- %malloccall = tail call i8* @malloc(i64 %mallocsize) ; <i8*> [#uses=1]
- %call3 = bitcast i8* %malloccall to i64* ; <i64*> [#uses=1]
-; CHECK: %malloccall =
-; CHECK: ==> (8 * %n) elements, (8 * %n) bytes allocated
%call2 = tail call i8* @calloc(i64 2, i64 4) nounwind ; <i8*> [#uses=1]
; CHECK: %call2 =
; CHECK: ==> 8 elements, 8 bytes allocated
@@ -78,17 +72,13 @@ entry:
; CHECK: %call4 =
; CHECK: ==> 16 elements, 16 bytes allocated
%call6 = tail call i32 @bar(i8* %call) nounwind ; <i32> [#uses=1]
- %call7 = tail call i32 @bar2(i64* %call3) nounwind ; <i32> [#uses=1]
%call8 = tail call i32 @bar(i8* %call2) nounwind ; <i32> [#uses=1]
%call10 = tail call i32 @bar(i8* %call4) nounwind ; <i32> [#uses=1]
- %add = add i32 %call8, %call6 ; <i32> [#uses=1]
- %add10 = add i32 %add, %call7 ; <i32> [#uses=1]
- %add11 = add i32 %add10, %call10 ; <i32> [#uses=1]
+ %add = add i32 %call8, %call6 ; <i32> [#uses=1]
+ %add11 = add i32 %add, %call10 ; <i32> [#uses=1]
ret i32 %add11
}
-declare noalias i8* @malloc(i64) nounwind
-
declare noalias i8* @calloc(i64, i64) nounwind
declare noalias i8* @realloc(i8* nocapture, i64) nounwind
OpenPOWER on IntegriCloud