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/DeadStoreElimination | |
parent | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (diff) | |
download | llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.gz llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.bz2 llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.xz |
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/DeadStoreElimination')
-rw-r--r-- | test/Transforms/DeadStoreElimination/const-pointers.ll | 6 | ||||
-rw-r--r-- | test/Transforms/DeadStoreElimination/no-targetdata.ll | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/DeadStoreElimination/const-pointers.ll b/test/Transforms/DeadStoreElimination/const-pointers.ll index 15976f9f10..c90d824b34 100644 --- a/test/Transforms/DeadStoreElimination/const-pointers.ll +++ b/test/Transforms/DeadStoreElimination/const-pointers.ll @@ -11,7 +11,7 @@ define void @test1(%t* noalias %pp) { %x = load i32* inttoptr (i32 12345 to i32*) store i32 %x, i32* %p ret void -; CHECK: define void @test1 +; CHECK-LABEL: define void @test1( ; CHECK: store ; CHECK-NOT: store ; CHECK: ret void @@ -21,7 +21,7 @@ define void @test3() { store i32 1, i32* @g; <-- This is dead. store i32 42, i32* @g ret void -; CHECK: define void @test3 +; CHECK-LABEL: define void @test3( ; CHECK: store ; CHECK-NOT: store ; CHECK: ret void @@ -32,7 +32,7 @@ define void @test4(i32* %p) { %x = load i32* @g; <-- %p and @g could alias store i32 %x, i32* %p ret void -; CHECK: define void @test4 +; CHECK-LABEL: define void @test4( ; CHECK: store ; CHECK: store ; CHECK: ret void diff --git a/test/Transforms/DeadStoreElimination/no-targetdata.ll b/test/Transforms/DeadStoreElimination/no-targetdata.ll index 4022d76dcb..c0c7c58d4e 100644 --- a/test/Transforms/DeadStoreElimination/no-targetdata.ll +++ b/test/Transforms/DeadStoreElimination/no-targetdata.ll @@ -7,7 +7,7 @@ define void @test1(i32* noalias %p) { call void @test1f() store i32 2, i32 *%p ret void -; CHECK: define void @test1 +; CHECK-LABEL: define void @test1( ; CHECK-NOT: store ; CHECK-NEXT: call void ; CHECK-NEXT: store i32 2 |