diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-21 22:36:52 +0000 |
| commit | 835702a094b0900a0b550f36a26df8ef7a15d3c7 (patch) | |
| tree | ec199ff2deeddad48d7bd9642048c39890a132b2 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
| parent | b47d28bfe8ee904b83138e23760b59681b42c01b (diff) | |
| download | bcm5719-llvm-835702a094b0900a0b550f36a26df8ef7a15d3c7.tar.gz bcm5719-llvm-835702a094b0900a0b550f36a26df8ef7a15d3c7.zip | |
Remove trailing whitespace
llvm-svn: 21420
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index df632100de6..2e6d8260e3f 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -57,7 +57,7 @@ namespace { bool runOnMachineFunction(MachineFunction&); }; - RegisterPass<TwoAddressInstructionPass> + RegisterPass<TwoAddressInstructionPass> X("twoaddressinstruction", "Two-Address instruction pass"); }; @@ -152,7 +152,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { mbbi->insert(mi, NewMI); // Insert the new inst mbbi->erase(mi); // Nuke the old inst. mi = NewMI; - } + } ++NumCommuted; regB = regC; @@ -161,7 +161,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { } } // If this instruction is potentially convertible to a true - // three-address instruction, + // three-address instruction, if (TID.Flags & M_CONVERTIBLE_TO_3_ADDR) if (MachineInstr *New = TII.convertToThreeAddress(mi)) { DEBUG(std::cerr << "2addr: CONVERTING 2-ADDR: " << *mi); @@ -197,7 +197,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { // replace all occurences of regB with regA for (unsigned i = 1, e = mi->getNumOperands(); i != e; ++i) { - if (mi->getOperand(i).isRegister() && + if (mi->getOperand(i).isRegister() && mi->getOperand(i).getReg() == regB) mi->SetMachineOperandReg(i, regA); } |

