mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 21:50:50 +00:00
Simplify code. No change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5cc6491f50
commit
4e39f8facb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user