[llvm] [AArch64] Fold scalar-to-vector shuffles into DUP/FMOV (PR #166962)
Amina Chabane via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 24 07:01:46 PST 2025
================
@@ -696,6 +696,15 @@ static bool is64bitDefwithZeroHigh64bit(MachineInstr *MI,
const TargetRegisterClass *RC = MRI->getRegClass(MI->getOperand(0).getReg());
if (RC != &AArch64::FPR64RegClass)
return false;
+ if (MI->getOpcode() == TargetOpcode::COPY) {
----------------
Amichaxx wrote:
Yes, so I have since updated the peephole so that it no longer relies on the cross class COPY. When the “FPR64 COPY from GPR” case is detected, it's now turned it into a "real" FMOVXDr.
https://github.com/llvm/llvm-project/pull/166962
More information about the llvm-commits
mailing list