summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIInstrInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/R600/SIInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Target/R600/SIInstrInfo.cpp b/llvm/lib/Target/R600/SIInstrInfo.cpp
index b0952e357f1..88f9ee08c9e 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.cpp
+++ b/llvm/lib/Target/R600/SIInstrInfo.cpp
@@ -426,29 +426,9 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
}
}
-static unsigned commuteCompareOpcode(unsigned Opcode) {
- // Compares have arbitrarily selected that < is the "original" and > is the
- // "reverse"
-
- int NewOpc;
-
- NewOpc = AMDGPU::getCommuteCmpRev(Opcode);
- if (NewOpc != -1)
- return NewOpc;
-
- NewOpc = AMDGPU::getCommuteCmpOrig(Opcode);
- if (NewOpc != -1)
- return NewOpc;
-
- return Opcode;
-}
-
unsigned SIInstrInfo::commuteOpcode(const MachineInstr &MI) const {
const unsigned Opcode = MI.getOpcode();
- if (MI.isCompare())
- return commuteCompareOpcode(Opcode);
-
int NewOpc;
// Try to map original to commuted opcode
OpenPOWER on IntegriCloud