diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
commit | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (patch) | |
tree | 7fed202a2c2c7866f60344b6388e0d3bd98cb14c /test/Transforms/GVN/pre-load.ll | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.zip external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 |
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update 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_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GVN/pre-load.ll')
-rw-r--r-- | test/Transforms/GVN/pre-load.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Transforms/GVN/pre-load.ll b/test/Transforms/GVN/pre-load.ll index bf4add4..9842886 100644 --- a/test/Transforms/GVN/pre-load.ll +++ b/test/Transforms/GVN/pre-load.ll @@ -2,7 +2,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" define i32 @test1(i32* %p, i1 %C) { -; CHECK: @test1 +; CHECK-LABEL: @test1( block1: br i1 %C, label %block2, label %block3 @@ -25,7 +25,7 @@ block4: ; This is a simple phi translation case. define i32 @test2(i32* %p, i32* %q, i1 %C) { -; CHECK: @test2 +; CHECK-LABEL: @test2( block1: br i1 %C, label %block2, label %block3 @@ -50,7 +50,7 @@ block4: ; This is a PRE case that requires phi translation through a GEP. define i32 @test3(i32* %p, i32* %q, i32** %Hack, i1 %C) { -; CHECK: @test3 +; CHECK-LABEL: @test3( block1: %B = getelementptr i32* %q, i32 1 store i32* %B, i32** %Hack @@ -80,7 +80,7 @@ block4: ;; Here the loaded address is available, but the computation is in 'block3' ;; which does not dominate 'block2'. define i32 @test4(i32* %p, i32* %q, i32** %Hack, i1 %C) { -; CHECK: @test4 +; CHECK-LABEL: @test4( block1: br i1 %C, label %block2, label %block3 @@ -116,7 +116,7 @@ block4: ;} define void @test5(i32 %N, double* nocapture %G) nounwind ssp { -; CHECK: @test5 +; CHECK-LABEL: @test5( entry: %0 = add i32 %N, -1 %1 = icmp sgt i32 %0, 0 @@ -159,7 +159,7 @@ return: ;} define void @test6(i32 %N, double* nocapture %G) nounwind ssp { -; CHECK: @test6 +; CHECK-LABEL: @test6( entry: %0 = add i32 %N, -1 %1 = icmp sgt i32 %0, 0 @@ -242,7 +242,7 @@ return: ;; Here the loaded address isn't available in 'block2' at all, requiring a new ;; GEP to be inserted into it. define i32 @test8(i32* %p, i32* %q, i32** %Hack, i1 %C) { -; CHECK: @test8 +; CHECK-LABEL: @test8( block1: br i1 %C, label %block2, label %block3 @@ -365,7 +365,7 @@ return: ; Test critical edge splitting. define i32 @test11(i32* %p, i1 %C, i32 %N) { -; CHECK: @test11 +; CHECK-LABEL: @test11( block1: br i1 %C, label %block2, label %block3 |