================
@@ -287,7 +287,7 @@ bool MachineLoop::isLoopInvariant(MachineInstr &I,
}
}
- if (!MO.isUse())
+ if (!MO.readsReg())
----------------
arsenm wrote:
this needs a mir test too
https://github.com/llvm/llvm-project/pull/100137