From 15bfd6d3ad739cca0a12049f3e7e94c3645ee881 Mon Sep 17 00:00:00 2001 From: Stephen Lin Date: Sun, 14 Jul 2013 01:50:49 +0000 Subject: 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 --- test/Transforms/Inline/inline_cleanup.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Transforms/Inline/inline_cleanup.ll') diff --git a/test/Transforms/Inline/inline_cleanup.ll b/test/Transforms/Inline/inline_cleanup.ll index c2808de..4361c2e 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 -- cgit v1.1