File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1719,8 +1719,7 @@ void RISCVInsertVSETVLI::coalesceVSETVLIs(MachineBasicBlock &MBB) const {
1719
1719
ToDelete.push_back (VLOpDef);
1720
1720
};
1721
1721
1722
- for (MachineInstr &MI :
1723
- make_early_inc_range (make_range (MBB.rbegin (), MBB.rend ()))) {
1722
+ for (MachineInstr &MI : make_early_inc_range (reverse (MBB))) {
1724
1723
1725
1724
if (!isVectorConfigInstr (MI)) {
1726
1725
Used.doUnion (getDemanded (MI, ST));
Original file line number Diff line number Diff line change @@ -1365,7 +1365,7 @@ bool RISCVVLOptimizer::runOnMachineFunction(MachineFunction &MF) {
1365
1365
if (!MDT->isReachableFromEntry (&MBB))
1366
1366
continue ;
1367
1367
1368
- for (auto &MI : make_range (MBB. rbegin (), MBB. rend () )) {
1368
+ for (auto &MI : reverse (MBB)) {
1369
1369
if (!isCandidate (MI))
1370
1370
continue ;
1371
1371
if (!tryReduceVL (MI))
You can’t perform that action at this time.
0 commit comments