diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:50:49 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:50:49 +0000 |
commit | 15bfd6d3ad739cca0a12049f3e7e94c3645ee881 (patch) | |
tree | 21476928d99a2db9bfb4a6af003f4030160d4703 /test/Transforms/LICM | |
parent | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (diff) | |
download | external_llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.zip external_llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.gz external_llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.bz2 |
Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugging. No functionality change.
This conversion 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_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LICM')
-rw-r--r-- | test/Transforms/LICM/atomics.ll | 8 | ||||
-rw-r--r-- | test/Transforms/LICM/hoisting.ll | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/LICM/atomics.ll b/test/Transforms/LICM/atomics.ll index 3902152..acf605d 100644 --- a/test/Transforms/LICM/atomics.ll +++ b/test/Transforms/LICM/atomics.ll @@ -14,7 +14,7 @@ loop: end: ret i32 %val -; CHECK: define i32 @test1( +; CHECK-LABEL: define i32 @test1( ; CHECK: load atomic ; CHECK-NEXT: br label %loop } @@ -33,7 +33,7 @@ loop: end: ret i32 %val -; CHECK: define i32 @test2( +; CHECK-LABEL: define i32 @test2( ; CHECK: load atomic ; CHECK-NEXT: %exitcond = icmp ne ; CHECK-NEXT: br i1 %exitcond, label %end, label %loop @@ -54,7 +54,7 @@ loop: end: ret i32 %vala -; CHECK: define i32 @test3( +; CHECK-LABEL: define i32 @test3( ; CHECK: load atomic i32* %x unordered ; CHECK-NEXT: br label %loop } @@ -73,7 +73,7 @@ loop: end: ret i32 %vala -; CHECK: define i32 @test4( +; CHECK-LABEL: define i32 @test4( ; CHECK: load atomic i32* %y monotonic ; CHECK-NEXT: store atomic } diff --git a/test/Transforms/LICM/hoisting.ll b/test/Transforms/LICM/hoisting.ll index 9da0675..b4d297a 100644 --- a/test/Transforms/LICM/hoisting.ll +++ b/test/Transforms/LICM/hoisting.ll @@ -52,7 +52,7 @@ Out: ; preds = %Loop ; This loop invariant instruction should be constant folded, not hoisted. define i32 @test3(i1 %c) { -; CHECK: define i32 @test3 +; CHECK-LABEL: define i32 @test3( ; CHECK: call void @foo2(i32 6) %A = load i32* @X ; <i32> [#uses=2] br label %Loop |