[RISCV] Remove SExtWRemovalCands set from RISCVSExtWRemoval.
authorCraig Topper <craig.topper@sifive.com>
Tue, 22 Nov 2022 03:23:08 +0000 (19:23 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 22 Nov 2022 03:24:02 +0000 (19:24 -0800)
commitf99514ac3a6fbf8af619f45a93a22c81bb7f9e22
tree8aefa1edc8ddfae1033f5e937f0b7622753be938
parent4e6adb394ebcdb2350fac6b47f7b789750e1f300
[RISCV] Remove SExtWRemovalCands set from RISCVSExtWRemoval.

After D137970, we do the fixable instruction conversion in place
so we don't need to worry about iterator invalidation. This lets
us to conversion and updates in a single loop.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D138043
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp