File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,7 @@ class HighRegisterPressureDetector {
1247
1247
for (auto &MI : *OrigMBB) {
1248
1248
if (MI.isDebugInstr ())
1249
1249
continue ;
1250
- for (auto Use : ROMap[&MI].Uses ) {
1250
+ for (auto & Use : ROMap[&MI].Uses ) {
1251
1251
auto Reg = Use.RegUnit ;
1252
1252
// Ignore the variable that appears only on one side of phi instruction
1253
1253
// because it's used only at the first iteration.
@@ -1345,7 +1345,7 @@ class HighRegisterPressureDetector {
1345
1345
1346
1346
DenseMap<Register, MachineInstr *> LastUseMI;
1347
1347
for (MachineInstr *MI : llvm::reverse (OrderedInsts)) {
1348
- for (auto Use : ROMap.find (MI)->getSecond ().Uses ) {
1348
+ for (auto & Use : ROMap.find (MI)->getSecond ().Uses ) {
1349
1349
auto Reg = Use.RegUnit ;
1350
1350
if (!TargetRegs.contains (Reg))
1351
1351
continue ;
You can’t perform that action at this time.
0 commit comments