diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-03-11 21:52:04 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-03-11 21:52:04 +0000 |
commit | 899eaa35696bb0a9a625acd70a14876834af6cc5 (patch) | |
tree | 3184b26965b0e0ef67ba636e90fa72e4a555b7a6 /test/Transforms/CodeGenPrepare | |
parent | 53aac15a607d66926e586c7fc57634f6be4ef443 (diff) | |
download | llvm-899eaa35696bb0a9a625acd70a14876834af6cc5.tar.gz llvm-899eaa35696bb0a9a625acd70a14876834af6cc5.tar.bz2 llvm-899eaa35696bb0a9a625acd70a14876834af6cc5.tar.xz |
Roll r127459 back in:
Optimize trivial branches in CodeGenPrepare, which often get created from the
lowering of objectsize intrinsics. Unfortunately, a number of tests were relying
on llc not optimizing trivial branches, so I had to add an option to allow them
to continue to test what they originally tested.
This fixes <rdar://problem/8785296> and <rdar://problem/9112893>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/CodeGenPrepare')
-rw-r--r-- | test/Transforms/CodeGenPrepare/basic.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/CodeGenPrepare/basic.ll b/test/Transforms/CodeGenPrepare/basic.ll index 3b1fca328c..ebf10f0e9d 100644 --- a/test/Transforms/CodeGenPrepare/basic.ll +++ b/test/Transforms/CodeGenPrepare/basic.ll @@ -14,13 +14,14 @@ entry: br i1 %1, label %T, label %trap ; CHECK: entry: -; HECK-NEXT: ret i32 4 +; CHECK-NEXT: br label %T trap: ; preds = %0, %entry tail call void @llvm.trap() noreturn nounwind unreachable T: +; CHECK: ret i32 4 ret i32 4 } |