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 | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (patch) | |
tree | 7fed202a2c2c7866f60344b6388e0d3bd98cb14c /test/Transforms/LICM/hoisting.ll | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.xz |
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
Diffstat (limited to 'test/Transforms/LICM/hoisting.ll')
-rw-r--r-- | test/Transforms/LICM/hoisting.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/LICM/hoisting.ll b/test/Transforms/LICM/hoisting.ll index 1ca377eb4a..9da0675463 100644 --- a/test/Transforms/LICM/hoisting.ll +++ b/test/Transforms/LICM/hoisting.ll @@ -7,7 +7,7 @@ declare void @foo() ; This testcase tests for a problem where LICM hoists ; potentially trapping instructions when they are not guaranteed to execute. define i32 @test1(i1 %c) { -; CHECK: @test1 +; CHECK-LABEL: @test1( %A = load i32* @X ; <i32> [#uses=2] br label %Loop Loop: ; preds = %LoopTail, %0 @@ -34,7 +34,7 @@ declare void @foo2(i32) nounwind ;; It is ok and desirable to hoist this potentially trapping instruction. define i32 @test2(i1 %c) { -; CHECK: @test2 +; CHECK-LABEL: @test2( ; CHECK-NEXT: load i32* @X ; CHECK-NEXT: %B = sdiv i32 4, %A %A = load i32* @X ; <i32> [#uses=2] @@ -65,7 +65,7 @@ Out: ; preds = %Loop ret i32 %C } -; CHECK: @test4 +; CHECK-LABEL: @test4( ; CHECK: call ; CHECK: sdiv ; CHECK: ret @@ -91,7 +91,7 @@ for.end: ; preds = %for.body declare void @foo_may_call_exit(i32) ; PR14854 -; CHECK: @test5 +; CHECK-LABEL: @test5( ; CHECK: extractvalue ; CHECK: br label %tailrecurse ; CHECK: tailrecurse: |