1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test/Transforms/SpeculativeExecution/spec-compares.ll
Matt Arsenault c44a8a92e5 SpeculativeExecution: Allow speculating more inst types
Partial step towards removing the whitelist and only
using TTI's cost.

llvm-svn: 285438
2016-10-28 20:00:33 +00:00

32 lines
531 B
LLVM

; 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
}