[llvm] [CodeGen][MachineLICM] Use RegUnits in HoistRegionPostRA (PR #94608)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 06:01:12 PDT 2024
================
@@ -460,16 +475,18 @@ void MachineLICMBase::ProcessMI(MachineInstr *MI, BitVector &PhysRegDefs,
assert(Reg.isPhysical() && "Not expecting virtual register!");
if (!MO.isDef()) {
- if (Reg && (PhysRegDefs.test(Reg) || PhysRegClobbers.test(Reg)))
----------------
arsenm wrote:
Could pre-commit removal of the redundant !Reg check
https://github.com/llvm/llvm-project/pull/94608
More information about the llvm-commits
mailing list