[llvm] [PowerPC] Add DMR and WACC COPY support (PR #149129)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 09:58:30 PDT 2025
================
@@ -122,6 +122,33 @@ namespace {
// Transform the original copy into a subregister extraction copy.
SrcMO.setReg(NewVReg);
SrcMO.setSubReg(PPC::sub_64);
+ } else if (IsRegInClass(DstMO.getReg(), &PPC::WACC_HIRCRegClass, MRI) &&
+ IsRegInClass(SrcMO.getReg(), &PPC::WACCRCRegClass, MRI)) {
+ // Matches the pattern:
+ // %a:waccrc = COPY %b.sub_wacc_hi:dmrrc
+ // %c:wacc_hirc = COPY %a:waccrc
+ // And replaces it with:
+ // %c:wacc_hirc = COPY %b.sub_wacc_hi:dmrrc
----------------
lei137 wrote:
nit: indent off
https://github.com/llvm/llvm-project/pull/149129
More information about the llvm-commits
mailing list