aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-04 22:17:40 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-04 22:17:40 +0000
commit14be64018fb38d1fa535b9cd12d11371f4eba3b5 (patch)
tree2c3d0a9d629d6c3998e976920255848c298d4d42 /lib/CodeGen/MachineInstr.cpp
parenta33ceaa2d46f6bf50c979e28581d9e4941b45d44 (diff)
Modify the two address instruction pass to remove the duplicate
operand of the instruction and thus simplify the register allocation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 869d963d53..9d7b1b2d99 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -27,24 +27,6 @@ namespace llvm {
//
extern const TargetInstrDescriptor *TargetInstrDescriptors;
-bool MachineOperand::isEverUsed(const MachineInstr& mi) const
-{
- for (int i = 0, e = mi.getNumOperands(); i != e; ++i) {
- if (*this == mi.getOperand(i) && mi.getOperand(i).isUse())
- return true;
- }
- return false;
-}
-
-bool MachineOperand::isEverDefined(const MachineInstr& mi) const
-{
- for (int i = 0, e = mi.getNumOperands(); i != e; ++i) {
- if (*this == mi.getOperand(i) && mi.getOperand(i).isDef())
- return true;
- }
- return false;
-}
-
// Constructor for instructions with variable #operands
MachineInstr::MachineInstr(MachineOpCode OpCode, unsigned numOperands)
: opCode(OpCode),