[llvm] [WIP][PowerPC] Add phony subregisters to cover the high half of the VSX registers. (PR #94628)

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 08:03:49 PDT 2024


================
@@ -3672,6 +3672,14 @@ bool RegisterCoalescer::joinVirtRegs(CoalescerPair &CP) {
     // having stale segments.
     LHSVals.pruneMainSegments(LHS, ShrinkMainRange);
 
+    LHSVals.pruneSubRegValues(LHS, ShrinkMask);
+    RHSVals.pruneSubRegValues(LHS, ShrinkMask);
+  } else if (TrackSubRegLiveness && !CP.getDstIdx() && CP.getSrcIdx()) {
----------------
bzEq wrote:

IIRC, it has something to do with `SUBREG_TO_REG` in which neither Src nor Dst has subranges.

https://github.com/llvm/llvm-project/pull/94628


More information about the llvm-commits mailing list