summaryrefslogtreecommitdiff
path: root/test/Transforms/ObjCARC/gvn.ll
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-04-27 05:25:54 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-04-27 05:25:54 +0000
commit2c2e85536d5020db3f64ab73b56ebe1bfd9aeb73 (patch)
tree03f4b5de78524bfb3fb365fc2916e5349cd950e2 /test/Transforms/ObjCARC/gvn.ll
parent3aa5394e5bbf267824e9d789ec8b1c27b85a8671 (diff)
downloadllvm-2c2e85536d5020db3f64ab73b56ebe1bfd9aeb73.tar.gz
llvm-2c2e85536d5020db3f64ab73b56ebe1bfd9aeb73.tar.bz2
llvm-2c2e85536d5020db3f64ab73b56ebe1bfd9aeb73.tar.xz
[objc-arc] Test cleanups.
Mainly adding paranoid checks for the closing brace of a function to help with FileCheck error readability. Also some other minor changes. No actual CHECK changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ObjCARC/gvn.ll')
-rw-r--r--test/Transforms/ObjCARC/gvn.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/ObjCARC/gvn.ll b/test/Transforms/ObjCARC/gvn.ll
index 3648866de0..a828b5485f 100644
--- a/test/Transforms/ObjCARC/gvn.ll
+++ b/test/Transforms/ObjCARC/gvn.ll
@@ -7,11 +7,12 @@ declare i8* @objc_retain(i8*)
; GVN should be able to eliminate this redundant load, with ARC-specific
; alias analysis.
-; CHECK: @foo
+; CHECK: define i8* @foo(i32 %n)
; CHECK-NEXT: entry:
; CHECK-NEXT: %s = load i8** @x
; CHECK-NOT: load
; CHECK: ret i8* %s
+; CHECK-NEXT: }
define i8* @foo(i32 %n) nounwind {
entry:
%s = load i8** @x