[llvm-commits] [llvm] r42761 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Mon Oct 8 11:27:47 PDT 2007
Author: evancheng
Date: Mon Oct 8 13:27:46 2007
New Revision: 42761
URL: http://llvm.org/viewvc/llvm-project?rev=42761&view=rev
Log:
Allow x86 compare to be commutable by default.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=42761&r1=42760&r2=42761&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Mon Oct 8 13:27:46 2007
@@ -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 @@
case X86::CMOVNP16rr:
case X86::CMOVNP32rr:
case X86::CMOVNP64rr: {
- if (!EnableCommuteCMove)
- return 0;
unsigned Opc = 0;
switch (MI->getOpcode()) {
default: break;
More information about the llvm-commits
mailing list