https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121240

--- Comment #9 from Wilco <wilco at gcc dot gnu.org> ---
We expand floating point constants using MOV/MOVK/DUP in the same way since the
use of DUP is faster when you are load limited (often the case in FP code). We
can fine tune which cases should expand into DUP, but the decision has to be
taken early on, so we can't take register pressure into account.

My question is why are these constants generated *inside* the loop if there is
no high register pressure? They should be lifted out of the loop. Do you know
what the actual bottleneck is? You could edit some extra MOV or DUP in the
disassembly to see which results in worse performance.

Reply via email to