[llvm] [RISCV][VLOpt] Minor worklist invariant cleanup [NFC] (PR #123989)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 07:14:57 PST 2025
================
@@ -1347,14 +1348,11 @@ bool RISCVVLOptimizer::runOnMachineFunction(MachineFunction &MF) {
auto PushOperands = [this, &Worklist](MachineInstr &MI,
bool IgnoreSameBlock) {
for (auto &Op : MI.operands()) {
- if (!Op.isReg() || !Op.isUse() || !Op.getReg().isVirtual())
- continue;
-
- if (!isVectorRegClass(Op.getReg(), MRI))
+ if (!Op.isReg() || !Op.isUse() || !Op.getReg().isVirtual() ||
+ !isVectorRegClass(Op.getReg(), MRI))
----------------
lukel97 wrote:
Oh sorry you're right. Ignore my comment
https://github.com/llvm/llvm-project/pull/123989
More information about the llvm-commits
mailing list