Dale Johannesen <dalej@apple.com> writes:
Note that the CTR-to-LR case is not handled by any of the patterns,
and
can't be without a temporary somewhere. What I'd like to do is
remove support
for keeping FP objects in CTR/LR (it looks like changing
HARD_REGNO_MODE_OK
is sufficient); while it's possible to construct cases where this is
useful, most of the
time the code is going to be really bad. Does that seem like a
reasonable idea?
You will also need to change CANNOT_CHANGE_MODE_CLASS, I think.
It doesn't seem like an unreasonable idea, but if it's really so bad
then the register allocator shouldn't be doing it in the first place;
could you try to work out what's happening?