This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: One more optimize_mode_switching() problem


On Wed, Feb 07, 2001 at 04:13:24PM -0200, Alexandre Oliva wrote:
> If the last insn of a function is a DFmode store, and prologue and
> epilogue must run in single mode, the mode switching would be inserted
> before the store, because there was not NOTE_INSN_BASIC_BLOCK after it
> that ptr->insn_ptr could be pointed to.

This doesn't seem right at all.  If you need to change modes
on exit of a function, you should be using insert_insn_on_edge
to the EXIT_BLOCK.



r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]