[FastISel][X86] Optimize selects when the condition comes from a compare.
authorJuergen Ributzka <juergen@apple.com>
Mon, 23 Jun 2014 21:55:36 +0000 (21:55 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 23 Jun 2014 21:55:36 +0000 (21:55 +0000)
commit5f4e6e1ec0154137efb15ea497ebd8cbe1850ea3
treea0cd63f7f0967b2f2ac09a04621e8d63c09e8ca8
parent1f659329b63aa1d1af2b2bfc8b174a8ccdaba2c0
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211543 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/fast-isel-select-cmov.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-select-cmov2.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-select.ll