summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-06-18 13:53:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-06-18 13:53:47 +0000
commit0fb6db64423657aeb174b760b8c0a23704af0079 (patch)
treeeec9bce69086e94e1d17d0a72168186355a3d774 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parent3fefc65c1d646477973089e21df9b1016ebc6779 (diff)
downloadbcm5719-llvm-0fb6db64423657aeb174b760b8c0a23704af0079.tar.gz
bcm5719-llvm-0fb6db64423657aeb174b760b8c0a23704af0079.zip
Simplify code. No change in functionality.
llvm-svn: 133350
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index f54d879759f..3860e0b4623 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1095,12 +1095,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
"two address instruction invalid");
unsigned regB = mi->getOperand(SrcIdx).getReg();
- TiedOperandMap::iterator OI = TiedOperands.find(regB);
- if (OI == TiedOperands.end()) {
- SmallVector<std::pair<unsigned, unsigned>, 4> TiedPair;
- OI = TiedOperands.insert(std::make_pair(regB, TiedPair)).first;
- }
- OI->second.push_back(std::make_pair(SrcIdx, DstIdx));
+ TiedOperands[regB].push_back(std::make_pair(SrcIdx, DstIdx));
}
// Now iterate over the information collected above.
OpenPOWER on IntegriCloud