summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86InstrInfo.cpp
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
commit5f4e6e1ec0154137efb15ea497ebd8cbe1850ea3 (patch)
treea0cd63f7f0967b2f2ac09a04621e8d63c09e8ca8 /lib/Target/X86/X86InstrInfo.cpp
parent1f659329b63aa1d1af2b2bfc8b174a8ccdaba2c0 (diff)
downloadllvm-5f4e6e1ec0154137efb15ea497ebd8cbe1850ea3.tar.gz
llvm-5f4e6e1ec0154137efb15ea497ebd8cbe1850ea3.tar.bz2
llvm-5f4e6e1ec0154137efb15ea497ebd8cbe1850ea3.tar.xz
[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
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index bfc8e2759d..0797fc6041 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -2696,8 +2696,8 @@ unsigned X86::getSETFromCond(CondCode CC, bool HasMemoryOperand) {
/// getCMovFromCond - Return a cmov opcode for the given condition,
/// register size in bytes, and operand type.
-static unsigned getCMovFromCond(X86::CondCode CC, unsigned RegBytes,
- bool HasMemoryOperand) {
+unsigned X86::getCMovFromCond(CondCode CC, unsigned RegBytes,
+ bool HasMemoryOperand) {
static const uint16_t Opc[32][3] = {
{ X86::CMOVA16rr, X86::CMOVA32rr, X86::CMOVA64rr },
{ X86::CMOVAE16rr, X86::CMOVAE32rr, X86::CMOVAE64rr },