[llvm-commits] [poolalloc] r156055 - in /poolalloc/trunk/test/dsa/types: mrv.ll mrv1.ll union.ll union1.ll union_arrays.ll
Will Dietz
wdietz2 at illinois.edu
Wed May 2 19:20:31 PDT 2012
Author: wdietz2
Date: Wed May 2 21:20:30 2012
New Revision: 156055
URL: http://llvm.org/viewvc/llvm-project?rev=156055&view=rev
Log:
Fix type lit tests to properly use temporaries to avoid stepping on each other.
Phew, much easier to fix than some transient memory error :).
Modified:
poolalloc/trunk/test/dsa/types/mrv.ll
poolalloc/trunk/test/dsa/types/mrv1.ll
poolalloc/trunk/test/dsa/types/union.ll
poolalloc/trunk/test/dsa/types/union1.ll
poolalloc/trunk/test/dsa/types/union_arrays.ll
Modified: poolalloc/trunk/test/dsa/types/mrv.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/types/mrv.ll?rev=156055&r1=156054&r2=156055&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/types/mrv.ll (original)
+++ poolalloc/trunk/test/dsa/types/mrv.ll Wed May 2 21:20:30 2012
@@ -4,10 +4,10 @@
;RUN: dsaopt %s -dsa-local -analyze -check-type=main:s,0:float|double::4:float::8:float
;RUN: dsaopt %s -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float|double::4:float::8:float
-;RUN: adsaopt %s -ld-args -deadargelim -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
-;RUN: adsaopt %s -ld-args -gep-expr-arg -deadargelim -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
+;RUN: adsaopt %s -ld-args -deadargelim -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
+;RUN: adsaopt %s -ld-args -gep-expr-arg -deadargelim -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
; Function foo, actually accepts an object of struct S. But as
; per calling conventions, the value is passed in registers, after
Modified: poolalloc/trunk/test/dsa/types/mrv1.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/types/mrv1.ll?rev=156055&r1=156054&r2=156055&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/types/mrv1.ll (original)
+++ poolalloc/trunk/test/dsa/types/mrv1.ll Wed May 2 21:20:30 2012
@@ -7,12 +7,12 @@
;RUN: dsaopt %s -dsa-local -analyze -check-type=main:s,0:float|double::4:float::8:float
;RUN: dsaopt %s -dsa-local -analyze -check-type=main:s1,0:float::4:float::8:float
;RUN: dsaopt %s -dsa-local -enable-type-inference-opts -analyze -check-type=main:s1,VOID
-;RUN: adsaopt %s -ld-args -deadargelim -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s1,VOID
-;RUN: adsaopt %s -ld-args -gep-expr-arg -deadargelim -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
-;RUN: dsaopt t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s1,VOID
+;RUN: adsaopt %s -ld-args -deadargelim -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s1,VOID
+;RUN: adsaopt %s -ld-args -gep-expr-arg -deadargelim -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s,0:float::4:float::8:float
+;RUN: dsaopt %t.bc -dsa-local -enable-type-inference-opts -analyze -check-type=main:s1,VOID
%0 = type { double, float }
%struct.S = type { float, float, float }
Modified: poolalloc/trunk/test/dsa/types/union.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/types/union.ll?rev=156055&r1=156054&r2=156055&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/types/union.ll (original)
+++ poolalloc/trunk/test/dsa/types/union.ll Wed May 2 21:20:30 2012
@@ -4,10 +4,10 @@
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"
-;RUN: adsaopt %s -mem2reg -mergearrgep -dce -o tt.bc
-;RUN: dsaopt tt.bc -dsa-local -analyze -enable-type-inference-opts -check-same-node=func:s1:8,func:x:8
-;RUN: dsaopt tt.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:s1,0:i32*
-;RUN: dsaopt tt.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:x,VOID
+;RUN: adsaopt %s -mem2reg -mergearrgep -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -analyze -enable-type-inference-opts -check-same-node=func:s1:8,func:x:8
+;RUN: dsaopt %t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:s1,0:i32*
+;RUN: dsaopt %t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:x,VOID
%struct.StructType = type { float, i32* }
%union.UnionType = type { %struct.StructType, [96 x i32] }
Modified: poolalloc/trunk/test/dsa/types/union1.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/types/union1.ll?rev=156055&r1=156054&r2=156055&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/types/union1.ll (original)
+++ poolalloc/trunk/test/dsa/types/union1.ll Wed May 2 21:20:30 2012
@@ -3,8 +3,8 @@
target triple = "x86_64-unknown-linux-gnu"
;RUN: dsaopt %s -dsa-local -analyze -enable-type-inference-opts -check-type=func:s1,FoldedVOID
-;RUN: adsaopt %s -mem2reg -mergearrgep -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:s1,0:i32*
+;RUN: adsaopt %s -mem2reg -mergearrgep -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:s1,0:i32*
%struct.NestedStructType = type { float, i32* }
%struct.StructType = type { float, i32*, %struct.NestedStructType }
Modified: poolalloc/trunk/test/dsa/types/union_arrays.ll
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/types/union_arrays.ll?rev=156055&r1=156054&r2=156055&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/types/union_arrays.ll (original)
+++ poolalloc/trunk/test/dsa/types/union_arrays.ll Wed May 2 21:20:30 2012
@@ -3,8 +3,8 @@
target triple = "x86_64-unknown-linux-gnu"
;RUN: dsaopt %s -dsa-local -analyze -check-type=func:obj,FoldedVOID
;RUN: dsaopt %s -dsa-local -analyze -enable-type-inference-opts -check-type=func:obj,FoldedVOID
-;RUN: adsaopt %s -mem2reg -simplify-gep -mergearrgep -dce -o t.bc
-;RUN: dsaopt t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:obj,0:i32|\\\[10xi32\\\]::40:i16|\\\[10xi16\\\]::60:i32|\\\[10xi32\\\]
+;RUN: adsaopt %s -mem2reg -simplify-gep -mergearrgep -dce -o %t.bc
+;RUN: dsaopt %t.bc -dsa-local -analyze -enable-type-inference-opts -check-type=func:obj,0:i32|\\\[10xi32\\\]::40:i16|\\\[10xi16\\\]::60:i32|\\\[10xi32\\\]
%struct.StructType1 = type { [10 x i32], [10 x i16], [10 x i32] }
%struct.StructType2 = type { [10 x i32], [10 x i32], [10 x i32] }
More information about the llvm-commits
mailing list