Patch to improve local-alloc invariant handling

John Wehle john@feith.com
Sun Oct 22 21:30:00 GMT 2000


> I'm interested in hearing other solutions.

I can probably have equiv_init_movable_p check REG_N_CALLS_CROSSED for
the pseudo register and if a call clobbered register is used as a source.
This should allow:

>	* rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
>	register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.

to be backed out, though having now seen this problem I do wonder
if perhaps your change should simply be left in to prevent other
possible problems.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



More information about the Gcc-patches mailing list