[llvm] [AArch64] Fix regression from “Fold scalar-to-vector shuffles into DUP/FMOV" (PR #178227)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 06:22:52 PST 2026
================
@@ -688,14 +688,57 @@ bool AArch64MIPeepholeOpt::visitINSviGPR(MachineInstr &MI, unsigned Opc) {
}
// All instructions that set a FPR64 will implicitly zero the top bits of the
-// register.
+// register. When the def is expressed as a COPY from a GPR, turn it into an
+// explicit FMOV so it cannot be elided later in further passes.
static bool is64bitDefwithZeroHigh64bit(MachineInstr *MI,
----------------
davemgreen wrote:
If you wanted to pull this part out into a separate PR, that might help get that bit done and simplify what remains.
https://github.com/llvm/llvm-project/pull/178227
More information about the llvm-commits
mailing list