Skip to content

Commit

Permalink
[RISCV] Use make_range instead of iterator_range for code from 8e6c309
Browse files Browse the repository at this point in the history
Jordan fixed this once in 4f9d069, but using make_range is more idiomatic than my accidental iterator_range usage, even with the template type to fix the warning.
  • Loading branch information
preames committed Dec 13, 2022
1 parent 96b6ee1 commit 3a02052
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,8 +1227,7 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
Used.VL = true;
Used.demandVTYPE();
SmallVector<MachineInstr*> ToDelete;
for (MachineInstr &MI : iterator_range<MachineBasicBlock::reverse_iterator>(
MBB.rbegin(), MBB.rend())) {
for (MachineInstr &MI : make_range(MBB.rbegin(), MBB.rend())) {

if (!isVectorConfigInstr(MI)) {
doUnion(Used, getDemanded(MI));
Expand Down

0 comments on commit 3a02052

Please sign in to comment.