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/Inline | |
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/Inline')
-rw-r--r-- | test/Transforms/Inline/2010-05-31-ByvalTailcall.ll | 2 | ||||
-rw-r--r-- | test/Transforms/Inline/inline_cleanup.ll | 4 | ||||
-rw-r--r-- | test/Transforms/Inline/inline_constprop.ll | 2 | ||||
-rw-r--r-- | test/Transforms/Inline/inline_returns_twice.ll | 4 | ||||
-rw-r--r-- | test/Transforms/Inline/recursive.ll | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/test/Transforms/Inline/2010-05-31-ByvalTailcall.ll b/test/Transforms/Inline/2010-05-31-ByvalTailcall.ll index 1ce74e6e41..b37b9f2ffa 100644 --- a/test/Transforms/Inline/2010-05-31-ByvalTailcall.ll +++ b/test/Transforms/Inline/2010-05-31-ByvalTailcall.ll @@ -17,7 +17,7 @@ define void @bar(i32* byval %x) { } define void @foo(i32* %x) { -; CHECK: define void @foo +; CHECK-LABEL: define void @foo( ; CHECK: store i32 %1, i32* %x call void @bar(i32* byval %x) ret void diff --git a/test/Transforms/Inline/inline_cleanup.ll b/test/Transforms/Inline/inline_cleanup.ll index c2808dece0..4361c2e8bb 100644 --- a/test/Transforms/Inline/inline_cleanup.ll +++ b/test/Transforms/Inline/inline_cleanup.ll @@ -128,7 +128,7 @@ end4: define void @outer2(i32 %z, i1 %b) { ; Ensure that after inlining, none of the blocks with a call to @f actually ; make it through inlining. -; CHECK: define void @outer2 +; CHECK-LABEL: define void @outer2( ; CHECK-NOT: call ; CHECK: ret void @@ -164,7 +164,7 @@ define void @PR12470_outer() { ; This previously crashed during inliner cleanup and folding inner return ; instructions. Check that we don't crash and we produce a function with a single ; return instruction due to merging the returns of the inlined function. -; CHECK: define void @PR12470_outer +; CHECK-LABEL: define void @PR12470_outer( ; CHECK-NOT: call ; CHECK: ret void ; CHECK-NOT: ret void diff --git a/test/Transforms/Inline/inline_constprop.ll b/test/Transforms/Inline/inline_constprop.ll index 30dd158295..2371fbcf11 100644 --- a/test/Transforms/Inline/inline_constprop.ll +++ b/test/Transforms/Inline/inline_constprop.ll @@ -6,7 +6,7 @@ define internal i32 @callee1(i32 %A, i32 %B) { } define i32 @caller1() { -; CHECK: define i32 @caller1 +; CHECK-LABEL: define i32 @caller1( ; CHECK-NEXT: ret i32 3 %X = call i32 @callee1( i32 10, i32 3 ) diff --git a/test/Transforms/Inline/inline_returns_twice.ll b/test/Transforms/Inline/inline_returns_twice.ll index ab2e954af1..f316c9152b 100644 --- a/test/Transforms/Inline/inline_returns_twice.ll +++ b/test/Transforms/Inline/inline_returns_twice.ll @@ -15,7 +15,7 @@ entry: define i32 @g() { entry: -; CHECK: define i32 @g +; CHECK-LABEL: define i32 @g( ; CHECK: call i32 @f() ; CHECK-NOT: call i32 @a() %call = call i32 @f() @@ -32,7 +32,7 @@ entry: define i32 @i() { entry: -; CHECK: define i32 @i +; CHECK-LABEL: define i32 @i( ; CHECK: call i32 @b() ; CHECK-NOT: call i32 @h() %call = call i32 @h() returns_twice diff --git a/test/Transforms/Inline/recursive.ll b/test/Transforms/Inline/recursive.ll index fe1c041af9..b9b14d1dbb 100644 --- a/test/Transforms/Inline/recursive.ll +++ b/test/Transforms/Inline/recursive.ll @@ -6,7 +6,7 @@ target triple = "i386-apple-darwin10.0" ; rdar://10853263 ; Make sure that the callee is still here. -; CHECK: define i32 @callee +; CHECK-LABEL: define i32 @callee( define i32 @callee(i32 %param) { %yyy = alloca [100000 x i8] %r = bitcast [100000 x i8]* %yyy to i8* @@ -14,7 +14,7 @@ define i32 @callee(i32 %param) { ret i32 4 } -; CHECK: define i32 @caller +; CHECK-LABEL: define i32 @caller( ; CHECK-NEXT: entry: ; CHECK-NOT: alloca ; CHECK: ret |