Removed SSE lane blend findCommutedOpIndices overrides. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 31 Jan 2015 15:16:30 +0000 (15:16 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 31 Jan 2015 15:16:30 +0000 (15:16 +0000)
The default op indices frmo TargetInstrInfo::findCommutedOpIndices are being commuted so we don't need to do this.

llvm-svn: 227689

llvm/lib/Target/X86/X86InstrInfo.cpp

index 24a7588..765417f 100644 (file)
@@ -2810,20 +2810,6 @@ X86InstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
 bool X86InstrInfo::findCommutedOpIndices(MachineInstr *MI, unsigned &SrcOpIdx1,
                                          unsigned &SrcOpIdx2) const {
   switch (MI->getOpcode()) {
-    case X86::BLENDPDrri:
-    case X86::BLENDPSrri:
-    case X86::PBLENDWrri:
-    case X86::VBLENDPDrri:
-    case X86::VBLENDPSrri:
-    case X86::VBLENDPDYrri:
-    case X86::VBLENDPSYrri:
-    case X86::VPBLENDDrri:
-    case X86::VPBLENDDYrri:
-    case X86::VPBLENDWrri:
-    case X86::VPBLENDWYrri:
-      SrcOpIdx1 = 1;
-      SrcOpIdx2 = 2;
-      return true;
     case X86::CMPPDrri:
     case X86::CMPPSrri:
     case X86::VCMPPDrri: