[PATCH] D94641: [AArch64][GlobalISel] Use wzr/xzr for FP stores of zero

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 10:04:28 PST 2021


paquette added a comment.

A better, more general solution might be to move some of the G_FCONSTANT selection code into the legalizer or post-legalizer lowering. That might make some of the selection code which relies on seeing a G_FCONSTANT more difficult to get right though.

Or, alternatively, teach regbankselect to check if a G_FCONSTANT is actually producing something that can/should be emitted using fmov. If it's not, then it could actually be assigned a GPR, because we know that's what it will end up on.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94641/new/

https://reviews.llvm.org/D94641



More information about the llvm-commits mailing list