mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,7 +30,7 @@ if.then: ; preds = %if.else, %entry
|
||||
|
||||
; PR7318: assertion failure after doing a simple loop unroll
|
||||
;
|
||||
; CHECK: @test2
|
||||
; CHECK-LABEL: @test2(
|
||||
; CHECK: bb1.bb2_crit_edge:
|
||||
; CHECK: %.lcssa = phi i32 [ %{{[2468]}}, %bb1{{.*}} ], [ %{{[2468]}}, %bb1{{.*}} ], [ %{{[2468]}}, %bb1{{.*}} ], [ %{{[2468]}}, %bb1{{.*}} ]
|
||||
; CHECK: bb1.3:
|
||||
@@ -67,7 +67,7 @@ bb2: ; preds = %bb1.bb2_crit_edge,
|
||||
|
||||
; Check phi update for loop with an early-exit.
|
||||
;
|
||||
; CHECK: @test3
|
||||
; CHECK-LABEL: @test3(
|
||||
; CHECK: return.loopexit:
|
||||
; CHECK: %tmp7.i.lcssa = phi i32 [ %tmp7.i{{.*}}, %land.lhs.true{{.*}} ], [ %tmp7.i{{.*}}, %land.lhs.true{{.*}} ], [ %tmp7.i{{.*}}, %land.lhs.true{{.*}} ], [ %tmp7.i{{.*}}, %land.lhs.true{{.*}} ]
|
||||
; CHECK: exit.3:
|
||||
|
||||
@@ -12,10 +12,10 @@ declare i32 @getval() nounwind
|
||||
; Check that the loop exit merges values from all the iterations. This
|
||||
; could be a tad fragile, but it's a good test.
|
||||
;
|
||||
; CHECK: @foo
|
||||
; CHECK-LABEL: @foo(
|
||||
; CHECK: return:
|
||||
; CHECK: %retval.0 = phi i32 [ %tmp7.i, %land.lhs.true ], [ 0, %do.cond ], [ %tmp7.i.1, %land.lhs.true.1 ], [ 0, %do.cond.1 ], [ %tmp7.i.2, %land.lhs.true.2 ], [ 0, %do.cond.2 ], [ %tmp7.i.3, %land.lhs.true.3 ], [ 0, %do.cond.3 ]
|
||||
; CHECK-NOT: @bar
|
||||
; CHECK-NOT-LABEL: @bar(
|
||||
; CHECK: bar.exit.3
|
||||
define i32 @foo() uwtable ssp align 2 {
|
||||
entry:
|
||||
|
||||
@@ -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"
|
||||
|
||||
; Check that for.body was unrolled 19 times.
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: %0 = load
|
||||
; CHECK: %conv = sext i8 %0 to i32
|
||||
; CHECK: %add.1 = add nsw i32 %conv.1, %conv
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
; This should not unroll since the address of the loop header is taken.
|
||||
|
||||
; CHECK: @test1
|
||||
; CHECK-LABEL: @test1(
|
||||
; CHECK: store i8* blockaddress(@test1, %l1), i8** %P
|
||||
; CHECK: l1:
|
||||
; CHECK-NEXT: phi i32
|
||||
@@ -25,7 +25,7 @@ l2: ; preds = %l1
|
||||
|
||||
; This should not unroll since the call is 'noduplicate'.
|
||||
|
||||
; CHECK: @test2
|
||||
; CHECK-LABEL: @test2(
|
||||
define i32 @test2(i8** %P) nounwind ssp {
|
||||
entry:
|
||||
br label %l1
|
||||
|
||||
@@ -4,7 +4,7 @@ target triple = "powerpc64-bgq-linux"
|
||||
|
||||
define void @test1() nounwind {
|
||||
; Ensure that we don't crash when the trip count == -1.
|
||||
; CHECK: @test1
|
||||
; CHECK-LABEL: @test1(
|
||||
entry:
|
||||
br label %for.cond2.preheader
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
; Completely unroll loops without a canonical IV.
|
||||
;
|
||||
; CHECK: @sansCanonical
|
||||
; CHECK-LABEL: @sansCanonical(
|
||||
; CHECK-NOT: phi
|
||||
; CHECK-NOT: icmp
|
||||
; CHECK: ret
|
||||
@@ -35,7 +35,7 @@ exit:
|
||||
; latch block. Canonical unrolling incorrectly unrolls it, but SCEV
|
||||
; unrolling does not.
|
||||
;
|
||||
; CHECK: @earlyLoopTest
|
||||
; CHECK-LABEL: @earlyLoopTest(
|
||||
; CHECK: tail:
|
||||
; CHECK-NOT: br
|
||||
; CHECK: br i1 %cmp2, label %loop, label %exit2
|
||||
@@ -69,7 +69,7 @@ exit2:
|
||||
; SCEV cannot currently unroll this loop.
|
||||
; It should ideally detect a trip count of 5.
|
||||
; rdar:14038809 [SCEV]: Optimize trip count computation for multi-exit loops.
|
||||
; CHECK: @multiExit
|
||||
; CHECK-LABEL: @multiExit(
|
||||
; CHECKFIXME: getelementptr i32* %base, i32 10
|
||||
; CHECKFIXME-NEXT: load i32*
|
||||
; CHECKFIXME: br i1 false, label %l2.10, label %exit1
|
||||
@@ -103,7 +103,7 @@ exit2:
|
||||
; LoopUnroll utility uses this assumption to optimize the latch
|
||||
; block's branch.
|
||||
;
|
||||
; CHECK: @multiExitIncomplete
|
||||
; CHECK-LABEL: @multiExitIncomplete(
|
||||
; CHECK: l3:
|
||||
; CHECK-NOT: br
|
||||
; CHECK: br i1 %cmp3, label %l1, label %exit3
|
||||
@@ -137,7 +137,7 @@ exit3:
|
||||
; When loop unroll merges a loop exit with one of its parent loop's
|
||||
; exits, SCEV must forget its ExitNotTaken info.
|
||||
;
|
||||
; CHECK: @nestedUnroll
|
||||
; CHECK-LABEL: @nestedUnroll(
|
||||
; CHECK-NOT: br i1
|
||||
; CHECK: for.body87:
|
||||
define void @nestedUnroll() nounwind {
|
||||
@@ -183,7 +183,7 @@ for.body87:
|
||||
; the loop latch's exit count of zero is an upper bound on the number
|
||||
; of iterations.
|
||||
;
|
||||
; CHECK: @nsw_latch
|
||||
; CHECK-LABEL: @nsw_latch(
|
||||
; CHECK: for.body:
|
||||
; CHECK: %b.03 = phi i32 [ 0, %entry ], [ %add, %for.cond ]
|
||||
; CHECK: return:
|
||||
|
||||
@@ -7,7 +7,7 @@ declare i1 @check() nounwind
|
||||
; Ensure that tail->inner is removed and rely on verify-loopinfo to
|
||||
; check soundness.
|
||||
;
|
||||
; CHECK: @skiplevelexit
|
||||
; CHECK-LABEL: @skiplevelexit(
|
||||
; CHECK: tail:
|
||||
; CHECK-NOT: br
|
||||
; CHECK: ret void
|
||||
@@ -38,7 +38,7 @@ exit:
|
||||
; Ensure that only the middle loop is removed and rely on verify-loopinfo to
|
||||
; check soundness.
|
||||
;
|
||||
; CHECK: @unloopNested
|
||||
; CHECK-LABEL: @unloopNested(
|
||||
; Outer loop control.
|
||||
; CHECK: while.body:
|
||||
; CHECK: br i1 %cmp3, label %if.then, label %if.end
|
||||
@@ -128,7 +128,7 @@ return:
|
||||
;
|
||||
; This test must be disabled until trip count computation can be optimized...
|
||||
; rdar:14038809 [SCEV]: Optimize trip count computation for multi-exit loops.
|
||||
; CHECKFIXME: @unloopDeepNested
|
||||
; CHECKFIXME-LABEL: @unloopDeepNested(
|
||||
; Inner-inner loop control.
|
||||
; CHECKFIXME: while.cond.us.i:
|
||||
; CHECKFIXME: br i1 %cmp.us.i, label %next_data.exit, label %while.body.us.i
|
||||
@@ -248,7 +248,7 @@ while.end:
|
||||
; Ensure that only the middle loop is removed and rely on verify-loopinfo to
|
||||
; check soundness.
|
||||
;
|
||||
; CHECK: @unloopIrreducible
|
||||
; CHECK-LABEL: @unloopIrreducible(
|
||||
; Irreducible loop.
|
||||
; CHECK: for.inc117:
|
||||
; CHECK: br label %for.cond103t
|
||||
@@ -326,7 +326,7 @@ for.end166:
|
||||
; Ensure that only the loop is removed and rely on verify-loopinfo to
|
||||
; check soundness.
|
||||
;
|
||||
; CHECK: @unloopCriticalEdge
|
||||
; CHECK-LABEL: @unloopCriticalEdge(
|
||||
; CHECK: while.cond.outer.i.loopexit.split:
|
||||
; CHECK: br label %while.body
|
||||
; CHECK: while.body:
|
||||
@@ -431,7 +431,7 @@ return: ; preds = %sw.bb304
|
||||
}
|
||||
|
||||
; PR11335: the most deeply nested block should be removed from the outer loop.
|
||||
; CHECK: @removeSubloopBlocks2
|
||||
; CHECK-LABEL: @removeSubloopBlocks2(
|
||||
; CHECK: for.cond3:
|
||||
; CHECK-NOT: br
|
||||
; CHECK: ret void
|
||||
|
||||
Reference in New Issue
Block a user