mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Avoid variable shadowing.
llvm-svn: 101170
This commit is contained in:
parent
bc94b6f1fd
commit
6e5407402e
@ -404,8 +404,8 @@ void MachineLICM::HoistRegionPostRA(MachineDomTreeNode *N) {
|
||||
if (PhysRegDefs[Candidates[i].Def] == 1) {
|
||||
bool Safe = true;
|
||||
MachineInstr *MI = Candidates[i].MI;
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
for (unsigned j = 0, ee = MI->getNumOperands(); j != ee; ++j) {
|
||||
const MachineOperand &MO = MI->getOperand(j);
|
||||
if (!MO.isReg() || MO.isDef())
|
||||
continue;
|
||||
if (PhysRegDefs[MO.getReg()]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user