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/GlobalOpt/2012-05-11-blockaddress.ll | |
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/GlobalOpt/2012-05-11-blockaddress.ll')
-rw-r--r-- | test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll b/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll index 0c58c1a..24213af 100644 --- a/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll +++ b/test/Transforms/GlobalOpt/2012-05-11-blockaddress.ll @@ -2,7 +2,7 @@ ; Check that the mere presence of a blockaddress doesn't prevent -globalopt ; from promoting @f to fastcc. -; CHECK: define{{.*}}fastcc{{.*}}@f +; CHECK-LABEL: define{{.*}}fastcc{{.*}}@f( define internal i8* @f() { ret i8* blockaddress(@f, %L1) L1: |