diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-28 20:00:33 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-28 20:00:33 +0000 |
| commit | ef00283425e40d9e78129d28e0c8ad965c3ea66b (patch) | |
| tree | ec5d2693b651e20afa6c6607110eac0dead048d0 /llvm/test/Transforms/SpeculativeExecution/spec-compares.ll | |
| parent | e0ab873a843b5f1320d376d67c9c5683c89a9921 (diff) | |
| download | bcm5719-llvm-ef00283425e40d9e78129d28e0c8ad965c3ea66b.tar.gz bcm5719-llvm-ef00283425e40d9e78129d28e0c8ad965c3ea66b.zip | |
SpeculativeExecution: Allow speculating more inst types
Partial step towards removing the whitelist and only
using TTI's cost.
llvm-svn: 285438
Diffstat (limited to 'llvm/test/Transforms/SpeculativeExecution/spec-compares.ll')
| -rw-r--r-- | llvm/test/Transforms/SpeculativeExecution/spec-compares.ll | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll b/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll new file mode 100644 index 00000000000..0d97374456c --- /dev/null +++ b/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll @@ -0,0 +1,31 @@ +; RUN: opt < %s -S -speculative-execution \ +; RUN: -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \ +; RUN: | FileCheck %s + +; CHECK-LABEL: @ifThen_icmp( +; CHECK: icmp +; CHECK: br i1 true +define void @ifThen_icmp() { + br i1 true, label %a, label %b + +a: + %x = icmp eq i32 undef, undef + br label %b + +b: + ret void +} + +; CHECK-LABEL: @ifThen_fcmp( +; CHECK: fcmp +; CHECK: br i1 true +define void @ifThen_fcmp() { + br i1 true, label %a, label %b + +a: + %x = fcmp oeq float undef, undef + br label %b + +b: + ret void +} |

