summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-select.ll
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-06-23 21:55:36 +0000
committerJuergen Ributzka <juergen@apple.com>2014-06-23 21:55:36 +0000
commit6ef06f9159950b14db7f40f1fd37aa53ca2e955b (patch)
tree86a626daa9e9a0d5eed4b2c259ce6ba967d27467 /llvm/test/CodeGen/X86/fast-isel-select.ll
parentc3f9b5a53458bb66899d6e90e9e032dfdfa5ba2b (diff)
downloadbcm5719-llvm-6ef06f9159950b14db7f40f1fd37aa53ca2e955b.tar.gz
bcm5719-llvm-6ef06f9159950b14db7f40f1fd37aa53ca2e955b.zip
[FastISel][X86] Optimize selects when the condition comes from a compare.
Optimize the select instructions sequence to use the EFLAGS directly from a compare when possible. llvm-svn: 211543
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-select.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-select.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-select.ll b/llvm/test/CodeGen/X86/fast-isel-select.ll
index 53158bc5396..7b3c99f13cc 100644
--- a/llvm/test/CodeGen/X86/fast-isel-select.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-select.ll
@@ -4,10 +4,10 @@
; lsb is zero.
; <rdar://problem/15651765>
-; CHECK-LABEL: fastisel_select:
+; CHECK-LABEL: fastisel_select:
; CHECK: subb {{%[a-z0-9]+}}, [[RES:%[a-z0-9]+]]
; CHECK: testb $1, [[RES]]
-; CHECK: cmovel
+; CHECK: cmovnel %edi, %esi
define i32 @fastisel_select(i1 %exchSub2211_, i1 %trunc_8766) {
%shuffleInternal15257_8932 = sub i1 %exchSub2211_, %trunc_8766
%counter_diff1345 = select i1 %shuffleInternal15257_8932, i32 1204476887, i32 0
OpenPOWER on IntegriCloud