[llvm] MachineCombiner: Partially fix losing subregister indexes (PR #141661)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 13:25:12 PDT 2025
================
@@ -1414,7 +1418,7 @@ void TargetInstrInfo::reassociateOps(
if (Idx == 0)
continue;
if (Idx == RootFirstOpIdx)
- MIB2 = MIB2.addReg(RegA, getKillRegState(KillA));
+ MIB2 = MIB2.addReg(RegA, getKillRegState(KillA), SubRegA);
----------------
preames wrote:
Right, but we swapped NewVR and RegA above, and the SubRegA here *wasn't* swapped.
https://github.com/llvm/llvm-project/pull/141661
More information about the llvm-commits
mailing list