[llvm-commits] [poolalloc] r118188 - in /poolalloc/trunk/test/dsa/local: struct4.ll union_P2I_1.ll
Arushi Aggarwal
aggarwa4 at illinois.edu
Wed Nov 3 12:00:34 PDT 2010
Author: aggarwa4
Date: Wed Nov 3 14:00:34 2010
New Revision: 118188
URL: http://llvm.org/viewvc/llvm-project?rev=118188&view=rev
Log:
Fixes for test cases.
Modified:
poolalloc/trunk/test/dsa/local/struct4.ll
poolalloc/trunk/test/dsa/local/union_P2I_1.ll
Modified: poolalloc/trunk/test/dsa/local/struct4.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/local/struct4.ll?rev=118188&r1=118187&r2=118188&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/local/struct4.ll (original)
+++ poolalloc/trunk/test/dsa/local/struct4.ll Wed Nov 3 14:00:34 2010
@@ -1,8 +1,8 @@
;accessing 1st field using struct pointer
-;RUN: dsaopt %s -dsa-local -analyze -check-type=main:r,0:i32|i32*::8:i32*::16:i8*
+;RUN: dsaopt %s -dsa-local -analyze -check-type=main:r,0:i32*::8:i32*::16:i8*
-; ModuleID = 'struct4.bc'
+; ModuleID = 'struct4.o'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
@@ -13,26 +13,28 @@
%retval = alloca i32 ; <i32*> [#uses=2]
%0 = alloca i32 ; <i32*> [#uses=2]
%r = alloca %struct.R ; <%struct.R*> [#uses=4]
- %x = alloca i32 ; <i32*> [#uses=1]
+ %x = alloca i32 ; <i32*> [#uses=2]
%y = alloca i32 ; <i32*> [#uses=1]
%c = alloca i8 ; <i8*> [#uses=1]
- %p = alloca i32* ; <i32**> [#uses=2]
+ %p = alloca i32** ; <i32***> [#uses=2]
%d = alloca i32 ; <i32*> [#uses=1]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
+ store i32 5, i32* %x, align 4
%1 = getelementptr inbounds %struct.R* %r, i32 0, i32 0 ; <i32**> [#uses=1]
store i32* %x, i32** %1, align 8
%2 = getelementptr inbounds %struct.R* %r, i32 0, i32 1 ; <i32**> [#uses=1]
store i32* %y, i32** %2, align 8
%3 = getelementptr inbounds %struct.R* %r, i32 0, i32 2 ; <i8**> [#uses=1]
store i8* %c, i8** %3, align 8
- %r1 = bitcast %struct.R* %r to i32* ; <i32*> [#uses=1]
- store i32* %r1, i32** %p, align 8
- %4 = load i32** %p, align 8 ; <i32*> [#uses=1]
- %5 = load i32* %4, align 4 ; <i32> [#uses=1]
- store i32 %5, i32* %d, align 4
+ %r1 = bitcast %struct.R* %r to i32** ; <i32**> [#uses=1]
+ store i32** %r1, i32*** %p, align 8
+ %4 = load i32*** %p, align 8 ; <i32**> [#uses=1]
+ %5 = load i32** %4, align 8 ; <i32*> [#uses=1]
+ %6 = load i32* %5, align 4 ; <i32> [#uses=1]
+ store i32 %6, i32* %d, align 4
store i32 0, i32* %0, align 4
- %6 = load i32* %0, align 4 ; <i32> [#uses=1]
- store i32 %6, i32* %retval, align 4
+ %7 = load i32* %0, align 4 ; <i32> [#uses=1]
+ store i32 %7, i32* %retval, align 4
br label %return
return: ; preds = %entry
Modified: poolalloc/trunk/test/dsa/local/union_P2I_1.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/local/union_P2I_1.ll?rev=118188&r1=118187&r2=118188&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/local/union_P2I_1.ll (original)
+++ poolalloc/trunk/test/dsa/local/union_P2I_1.ll Wed Nov 3 14:00:34 2010
@@ -1,6 +1,7 @@
;RUN: dsaopt %s -dsa-local -analyze -check-same-node=main:c:0,main:obj:0
-;RUN: dsaopt %s -dsa-local -analyze -verify-flags "main:c:0+UP2"
-;RUN: dsaopt %s -dsa-local -analyze -check-type=main:obj,0:i32|i32*Array
+;RUN: dsaopt %s -dsa-local -analyze -check-type=main:obj,FoldedVOID
+
+;union of array of int/int*. Must get collapsed, as the element type is not of consistent size
; ModuleID = 'union_P2I_1.bc'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
More information about the llvm-commits
mailing list