aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/InstrSelection/InstrForest.cpp13
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrForest.cpp13
2 files changed, 0 insertions, 26 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp
index ed271a3100..ddac9fec92 100644
--- a/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -125,19 +125,6 @@ InstructionNode::InstructionNode(Instruction* _instr)
basicNode.opLabel = opLabel;
}
-void
-InstructionNode::reverseBinaryArgumentOrder()
-{
- assert(getInstruction()->isBinaryOp());
-
- // switch arguments for the instruction
- ((BinaryOperator*) getInstruction())->swapOperands();
-
- // switch arguments for this tree node itself
- BasicTreeNode* leftCopy = basicNode.leftChild;
- basicNode.leftChild = basicNode.rightChild;
- basicNode.rightChild = leftCopy;
-}
void
InstructionNode::dumpNode(int indent) const
diff --git a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
index ed271a3100..ddac9fec92 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrForest.cpp
@@ -125,19 +125,6 @@ InstructionNode::InstructionNode(Instruction* _instr)
basicNode.opLabel = opLabel;
}
-void
-InstructionNode::reverseBinaryArgumentOrder()
-{
- assert(getInstruction()->isBinaryOp());
-
- // switch arguments for the instruction
- ((BinaryOperator*) getInstruction())->swapOperands();
-
- // switch arguments for this tree node itself
- BasicTreeNode* leftCopy = basicNode.leftChild;
- basicNode.leftChild = basicNode.rightChild;
- basicNode.rightChild = leftCopy;
-}
void
InstructionNode::dumpNode(int indent) const