diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip |
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll')
-rw-r--r-- | llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll b/llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll deleted file mode 100644 index 8fea9bc7b24..00000000000 --- a/llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll +++ /dev/null @@ -1,43 +0,0 @@ -; RUN: opt -S -wholeprogramdevirt %s | FileCheck %s - -target datalayout = "e-p:64:64" -target triple = "x86_64-unknown-linux-gnu" - -@vt1 = constant [1 x i8*] [i8* bitcast (i32 (i8*)* @vf1 to i8*)], !type !0 -@vt2 = constant [1 x i8*] [i8* bitcast (i32 (i8*)* @vf2 to i8*)], !type !0 - -define i32 @vf1(i8* %this) readnone { - ret i32 123 -} - -define i32 @vf2(i8* %this) readnone { - ret i32 123 -} - -; CHECK: define i32 @call -define i32 @call(i8* %obj) personality i8* undef { - %vtableptr = bitcast i8* %obj to [1 x i8*]** - %vtable = load [1 x i8*]*, [1 x i8*]** %vtableptr - %vtablei8 = bitcast [1 x i8*]* %vtable to i8* - %p = call i1 @llvm.type.test(i8* %vtablei8, metadata !"typeid") - call void @llvm.assume(i1 %p) - %fptrptr = getelementptr [1 x i8*], [1 x i8*]* %vtable, i32 0, i32 0 - %fptr = load i8*, i8** %fptrptr - %fptr_casted = bitcast i8* %fptr to i32 (i8*)* - ; CHECK: br label %[[RET:[0-9A-Za-z]*]] - %result = invoke i32 %fptr_casted(i8* %obj) to label %ret unwind label %unwind - -unwind: - %x = landingpad i32 cleanup - unreachable - -ret: - ; CHECK: [[RET]]: - ; CHECK-NEXT: ret i32 123 - ret i32 %result -} - -declare i1 @llvm.type.test(i8*, metadata) -declare void @llvm.assume(i1) - -!0 = !{i32 0, !"typeid"} |