summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/objsize-64.ll
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-06-25 17:11:47 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-06-25 17:11:47 +0000
commit3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e (patch)
tree3b6f81ade44460101257ea285f2fa1cafe3ea71e /test/Transforms/InstCombine/objsize-64.ll
parente8742d084c54e9cd230fa03d368f0fedac2106cb (diff)
downloadllvm-3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e.tar.gz
llvm-3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e.tar.bz2
llvm-3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e.tar.xz
improve optimization of invoke instructions:
- simplifycfg: invoke undef/null -> unreachable - instcombine: invoke new -> invoke expect(0, 0) (an arbitrary NOOP intrinsic; only done if the allocated memory is unused, of course) - verifier: allow invoke of intrinsics (to make the previous step work) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/objsize-64.ll')
-rw-r--r--test/Transforms/InstCombine/objsize-64.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/objsize-64.ll b/test/Transforms/InstCombine/objsize-64.ll
index 77b43ecd23..7a39f46194 100644
--- a/test/Transforms/InstCombine/objsize-64.ll
+++ b/test/Transforms/InstCombine/objsize-64.ll
@@ -19,7 +19,7 @@ define i64 @f1() {
; CHECK: @f2
define i64 @f2() nounwind uwtable ssp {
entry:
-; CHECK: br label
+; CHECK: invoke i8 @llvm.expect.i8(i8 0, i8 0)
%call = invoke noalias i8* @_Znwm(i64 13)
to label %invoke.cont unwind label %lpad