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: [PATCH] Fix PPC combine ICE


>>>>> Alexandre Oliva writes:

>> I think the original RTL generation creating the CONST_INT
>> should have performed that.

Alexandre> Agreed.

	So where should this be done?

	Maybe we should add this sanity check to force_reg() as well.
That seems to be part of the problem.  We hand force_reg() a CONST_INT and
a mode.  It blindly places the CONST_INT into a REG and sets a REG_EQUAL
note, but never checks that the CONST_INT is valid for the mode.

David


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