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]
Other format: [Raw text]

Re: Various gp-related mips optimisations



> ! 	  /* compute_frame_size assumes that any function which uses the
> ! 	     constant pool will need a gp.  However, all constant
> ! 	     pool references could be eliminated, in which case
> ! 	     it is OK for flow to delete the gp load as well.  */
> ! 	  insn = get_last_insn ();
> ! 	  for (i = 0; i < 3; i++)
> ! 	    {
> ! 	      REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD, const0_rtx,
> ! 						    REG_NOTES (insn));
> ! 	      insn = PREV_INSN (insn);
> ! 	    }
> ! 	}
>       }

Definitely don't like this block, but I think that we need it since we
can't accurately (or at all afaict) determine ahead of time whether or
not we're going to be deleting all of the constant pool references.
Anyone else see a way around this?

-eric

ps. everything else is good though.

-- 
Eric Christopher <echristo@redhat.com>


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