diff options
| author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
|---|---|---|
| committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
| commit | c1c7a1309c039ec8539e3c851f332825d8855223 (patch) | |
| tree | f02719af3762ca8753eb422a365ef33ddf23f0c4 /llvm/test/Transforms/LoopStrengthReduce | |
| parent | 2e105ff8b789f517c3e19de275775df2d6da4aa0 (diff) | |
| download | bcm5719-llvm-c1c7a1309c039ec8539e3c851f332825d8855223.tar.gz bcm5719-llvm-c1c7a1309c039ec8539e3c851f332825d8855223.zip | |
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update was done with the following bash script:
find test/Transforms -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc" $NAME; then
TEMP=`mktemp -t temp`
cp $NAME $TEMP
sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
while read FUNC; do
sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
llvm-svn: 186268
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce')
16 files changed, 19 insertions, 19 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/2011-10-03-CritEdgeMerge.ll b/llvm/test/Transforms/LoopStrengthReduce/2011-10-03-CritEdgeMerge.ll index af3a53708b4..ccf8ebdd5d1 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2011-10-03-CritEdgeMerge.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2011-10-03-CritEdgeMerge.ll @@ -5,7 +5,7 @@ target triple = "x86-apple-darwin" ; Verify that identical edges are merged. rdar://problem/6453893 -; CHECK: @test1 +; CHECK-LABEL: @test1( ; CHECK: bb89: ; CHECK: phi i8* [ %lsr.iv.next1, %bbA.bb89_crit_edge ], [ %lsr.iv.next1, %bbB.bb89_crit_edge ]{{$}} @@ -43,7 +43,7 @@ exit: } ; Handle single-predecessor phis: PR13756 -; CHECK: @test2 +; CHECK-LABEL: @test2( ; CHECK: bb89: ; CHECK: phi i8* [ %lsr.iv.next1, %bbA ], [ %lsr.iv.next1, %bbA ], [ %lsr.iv.next1, %bbA ]{{$}} define i8* @test2() { diff --git a/llvm/test/Transforms/LoopStrengthReduce/2011-10-06-ReusePhi.ll b/llvm/test/Transforms/LoopStrengthReduce/2011-10-06-ReusePhi.ll index 1ee9bb409d9..83963e3126d 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2011-10-06-ReusePhi.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2011-10-06-ReusePhi.ll @@ -5,7 +5,7 @@ target triple = "x86-apple-darwin" -; CHECK: @test +; CHECK-LABEL: @test( ; multiplies are hoisted out of the loop ; CHECK: while.body.lr.ph: ; CHECK: mul i64 diff --git a/llvm/test/Transforms/LoopStrengthReduce/2011-10-13-SCEVChain.ll b/llvm/test/Transforms/LoopStrengthReduce/2011-10-13-SCEVChain.ll index 4718529bfd5..484fefaad41 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2011-10-13-SCEVChain.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2011-10-13-SCEVChain.ll @@ -8,7 +8,7 @@ target triple = "x86_64-apple-darwin" ; Verify that -loop-reduce runs without "hanging" and reuses post-inc ; expansions. -; CHECK: @test +; CHECK-LABEL: @test( ; CHECK: icmp ; CHECK: icmp ; CHECK: icmp diff --git a/llvm/test/Transforms/LoopStrengthReduce/2011-10-14-IntPtr.ll b/llvm/test/Transforms/LoopStrengthReduce/2011-10-14-IntPtr.ll index 60cc7a51632..068b716651d 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2011-10-14-IntPtr.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2011-10-14-IntPtr.ll @@ -5,7 +5,7 @@ target triple = "x86_64-apple-darwin" -; CHECK: @test +; CHECK-LABEL: @test( ; CHECK: phi ; CHECK-NOT: phi define void @test(i32 %rowStride) ssp align 2 { diff --git a/llvm/test/Transforms/LoopStrengthReduce/2011-12-19-PostincQuadratic.ll b/llvm/test/Transforms/LoopStrengthReduce/2011-12-19-PostincQuadratic.ll index 392a8bcf89d..6c128feb541 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2011-12-19-PostincQuadratic.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2011-12-19-PostincQuadratic.ll @@ -9,7 +9,7 @@ target triple = "i386-unknown-freebsd10.0" @b = external global [121 x i32] -; CHECK: @vb +; CHECK-LABEL: @vb( ; Outer recurrence: ; CHECK: %lsr.iv1 = phi [121 x i32]* ; Inner recurrence: diff --git a/llvm/test/Transforms/LoopStrengthReduce/2012-01-02-nopreheader.ll b/llvm/test/Transforms/LoopStrengthReduce/2012-01-02-nopreheader.ll index d7f5723188c..87dd39730ec 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2012-01-02-nopreheader.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2012-01-02-nopreheader.ll @@ -11,7 +11,7 @@ target triple = "i386-apple-darwin" ; cannot find a preheader, so they should be expanded in the loop header ; (bb7.lr.ph.us) below the existing phi i.12.us. ; Currently, LSR won't kick in on such loops. -; CHECK: @nopreheader +; CHECK-LABEL: @nopreheader( ; CHECK: bb7.us: ; CHECK-NOT: phi float* ; CHECK: %j.01.us = phi i32 @@ -54,7 +54,7 @@ return: ; preds = %bb9, %bb9.us, %bb10 ; In this case, SCEVExpander simply cannot materialize the AddRecExpr ; that LSR picks. We must detect that %bb8.preheader does not have a ; preheader and avoid performing LSR on %bb7. -; CHECK: @nopreheader2 +; CHECK-LABEL: @nopreheader2( ; CHECK: bb7: ; CHECK: %indvar = phi i32 define fastcc void @nopreheader2([200 x i32]* nocapture %Array2) nounwind { diff --git a/llvm/test/Transforms/LoopStrengthReduce/2012-01-16-nopreheader.ll b/llvm/test/Transforms/LoopStrengthReduce/2012-01-16-nopreheader.ll index 3036a7e38bb..94a037ec28e 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2012-01-16-nopreheader.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2012-01-16-nopreheader.ll @@ -8,7 +8,7 @@ target triple = "x86_64-apple-darwin10.0.0" ; while.cond197 is a dominates the simplified loop while.cond238 but ; has no with no preheader. ; -; CHECK: @nopreheader +; CHECK-LABEL: @nopreheader( ; CHECK: %while.cond238 ; CHECK: phi i64 ; CHECK-NOT: phi diff --git a/llvm/test/Transforms/LoopStrengthReduce/2012-03-15-nopreheader.ll b/llvm/test/Transforms/LoopStrengthReduce/2012-03-15-nopreheader.ll index 0172492edc9..5fa3838c829 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2012-03-15-nopreheader.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2012-03-15-nopreheader.ll @@ -7,7 +7,7 @@ target triple = "x86_64-apple-darwin10.0.0" ; IVUsers should not consider tmp128 a valid user because it is not in a ; simplified loop nest. -; CHECK: @nopreheader +; CHECK-LABEL: @nopreheader( ; CHECK: for.cond: ; CHECK: %tmp128 = add i64 %0, %indvar65 define void @nopreheader(i8* %cmd) nounwind ssp { diff --git a/llvm/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll b/llvm/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll index 8bac639ae55..ea1d65b1652 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll @@ -10,7 +10,7 @@ target triple = "x86_64-apple-darwin" @g_3 = global i32 0, align 4 ; Ensure that %div.i.i.us is not hoisted. -; CHECK: @main +; CHECK-LABEL: @main( ; CHECK: for.body.i.i.us: ; CHECK: %div.i.i.i.us ; CHECK: %cmp5.i.i.us diff --git a/llvm/test/Transforms/LoopStrengthReduce/2013-01-05-IndBr.ll b/llvm/test/Transforms/LoopStrengthReduce/2013-01-05-IndBr.ll index bce234cd406..8a5a0a4c5fc 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2013-01-05-IndBr.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2013-01-05-IndBr.ll @@ -5,7 +5,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128" -; CHECK: @test +; CHECK-LABEL: @test( ; CHECK: bb8: ; CHECK-NEXT: phi i8 ; CHECK-NEXT: phi i8 diff --git a/llvm/test/Transforms/LoopStrengthReduce/2013-01-14-ReuseCast.ll b/llvm/test/Transforms/LoopStrengthReduce/2013-01-14-ReuseCast.ll index 652eb06225c..79dbf0d5370 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/2013-01-14-ReuseCast.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/2013-01-14-ReuseCast.ll @@ -8,7 +8,7 @@ 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-S128" ; Verify that nothing uses the "dead" ptrtoint from "undef". -; CHECK: @VerifyDiagnosticConsumerTest +; CHECK-LABEL: @VerifyDiagnosticConsumerTest( ; CHECK: bb: ; "dead" ptrpoint not emitted (or dead code eliminated) with ; current LSR cost model. diff --git a/llvm/test/Transforms/LoopStrengthReduce/X86/2011-07-20-DoubleIV.ll b/llvm/test/Transforms/LoopStrengthReduce/X86/2011-07-20-DoubleIV.ll index a932b479258..2fe62e39fc9 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/X86/2011-07-20-DoubleIV.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/X86/2011-07-20-DoubleIV.ll @@ -5,7 +5,7 @@ ; rdar://9786536 ; First, make sure LSR doesn't crash on an empty IVUsers list. -; CHECK: @dummyIV +; CHECK-LABEL: @dummyIV( ; CHECK-NOT: phi ; CHECK-NOT: sitofp ; CHECK: br @@ -24,7 +24,7 @@ for.end: } ; Now check that the computed double constant is correct. -; CHECK: @doubleIV +; CHECK-LABEL: @doubleIV( ; CHECK: phi double [ -3.900000e+01, %entry ] ; CHECK: br define void @doubleIV() nounwind { diff --git a/llvm/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll b/llvm/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll index eedfc200f48..fad52410ac8 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/X86/2011-12-04-loserreg.ll @@ -14,7 +14,7 @@ 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-S128" target triple = "x86_64-apple-darwin" -; CHECK: @test +; CHECK-LABEL: @test( ; CHECK: for.body: ; CHECK: %lsr.iv ; CHECK-NOT: %dummyout diff --git a/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll b/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll index ce7ad198de4..233800b71c6 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/ivchain.ll @@ -6,7 +6,7 @@ %struct = type { i8*, i8*, i16, i64, i16, i16, i16, i64, i64, i16, i8*, i64, i64, i64 } -; CHECK: @test +; CHECK-LABEL: @test( ; CHECK: for.body: ; CHECK: lsr.iv = phi %struct ; CHECK: br diff --git a/llvm/test/Transforms/LoopStrengthReduce/scaling_factor_cost_crash.ll b/llvm/test/Transforms/LoopStrengthReduce/scaling_factor_cost_crash.ll index cd8fec3d2c8..a652a7661e2 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/scaling_factor_cost_crash.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/scaling_factor_cost_crash.ll @@ -3,7 +3,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 target triple = "i686-pc-win32" ; <rdar://problem/14199725> Assertion failed: (CurScaleCost >= 0 && "Legal addressing mode has an illegal cost!") -; CHECK: @scalingFactorCrash +; CHECK-LABEL: @scalingFactorCrash( define void @scalingFactorCrash() { br i1 undef, label %1, label %24 diff --git a/llvm/test/Transforms/LoopStrengthReduce/uglygep.ll b/llvm/test/Transforms/LoopStrengthReduce/uglygep.ll index 10c77d5f645..e744cf92256 100644 --- a/llvm/test/Transforms/LoopStrengthReduce/uglygep.ll +++ b/llvm/test/Transforms/LoopStrengthReduce/uglygep.ll @@ -52,7 +52,7 @@ bb14: ; preds = %bb14, %bb10 } define fastcc void @TransformLine() nounwind { -; CHECK: @TransformLine +; CHECK-LABEL: @TransformLine( bb: br label %loop0 |

