summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-10-08 18:27:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-10-08 18:27:46 +0000
commit18109c88c3849a82050f5d3aa03c1e231e67c4be (patch)
treec7d5f25184f50322c91bbade9a7c34799aa86728 /llvm/lib/Target/X86/X86InstrInfo.cpp
parent44dd8fbd26a5b859cc7605fa2486a8a76d502f20 (diff)
downloadbcm5719-llvm-18109c88c3849a82050f5d3aa03c1e231e67c4be.tar.gz
bcm5719-llvm-18109c88c3849a82050f5d3aa03c1e231e67c4be.zip
Allow x86 compare to be commutable by default.
llvm-svn: 42761
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index d8f632501de..1a5853c0361 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -22,15 +22,8 @@
#include "llvm/CodeGen/LiveVariables.h"
#include "llvm/CodeGen/SSARegMap.h"
#include "llvm/Target/TargetOptions.h"
-#include "llvm/Support/CommandLine.h"
using namespace llvm;
-namespace {
- cl::opt<bool>
- EnableCommuteCMove("enable-x86-commute-cmove",
- cl::desc("Commute conditional moves by inverting conditions"));
-}
-
X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
: TargetInstrInfo(X86Insts, array_lengthof(X86Insts)),
TM(tm), RI(tm, *this) {
@@ -442,8 +435,6 @@ MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const {
case X86::CMOVNP16rr:
case X86::CMOVNP32rr:
case X86::CMOVNP64rr: {
- if (!EnableCommuteCMove)
- return 0;
unsigned Opc = 0;
switch (MI->getOpcode()) {
default: break;
OpenPOWER on IntegriCloud