summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/switch-on-const-select.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-01-05 23:58:56 +0000
committerDan Gohman <gohman@apple.com>2012-01-05 23:58:56 +0000
commit3b205175ea417349ab96f3525d730e005e12c0f9 (patch)
tree33b98cf9ccedfefa32755014b961a9071908a033 /test/Transforms/SimplifyCFG/switch-on-const-select.ll
parentfb54ad19e7ef1b4f7177a005332ca8aca9bdbcb1 (diff)
downloadexternal_llvm-3b205175ea417349ab96f3525d730e005e12c0f9.zip
external_llvm-3b205175ea417349ab96f3525d730e005e12c0f9.tar.gz
external_llvm-3b205175ea417349ab96f3525d730e005e12c0f9.tar.bz2
Fix SpeculativelyExecuteBB to either speculate all or none of the phis
present in the bottom of the CFG triangle, as the transformation isn't ever valuable if the branch can't be eliminated. Also, unify some heuristics between SimplifyCFG's multiple if-converters, for consistency. This fixes rdar://10627242. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/switch-on-const-select.ll')
-rw-r--r--test/Transforms/SimplifyCFG/switch-on-const-select.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/SimplifyCFG/switch-on-const-select.ll b/test/Transforms/SimplifyCFG/switch-on-const-select.ll
index 5494a65..673a62b 100644
--- a/test/Transforms/SimplifyCFG/switch-on-const-select.ll
+++ b/test/Transforms/SimplifyCFG/switch-on-const-select.ll
@@ -115,7 +115,7 @@ entry:
cont:
; CHECK: %lt = icmp slt i64 %x, %y
%lt = icmp slt i64 %x, %y
-; CHECK-NEXT: br i1 %lt, label %a, label %r
+; CHECK-NEXT: select i1 %lt, i32 -1, i32 1
%qux = select i1 %lt, i32 0, i32 2
switch i32 %qux, label %bees [
i32 0, label %a