isDef32 would attempt to make a guess at which SelectionDag nodes were 32bit sources, and use the nature of 32bit AArch64 instructions implicitly zeroing the upper register half to not emit zext that were expected to already be zero. This was a bit fragile though, needing to guess at the correct opcodes that do not become 32bit defs.
This patch removed isDef32, relying on the AArch64MIPeephole optimizer to remove redundant SUBREG_TO_REG nodes. A part of SelectArithExtendedRegister was left with the same logic as a heuristic to prevent some regressions from it picking less optimal sequences, and the AArch64MIPeepholeOpt needs to be taught that COPY from a FPR will become a FMOVSWr, doing the same implicit zeroing.
Fixes #55833
Maybe explicitly note this is a heuristic, so it doesn't matter if it's wrong in edge cases.