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] genrecog.c: Simplify comparisons against small constants in insn-recog.c.


On Fri, Jan 30, 2004 at 06:38:53AM -0700, Roger Sayle wrote:
> Isn't this simply an extension of the cleanup
> "GET_CODE (x) == CONST_INT && XWINT (x, 0) == 0" to "x == const0_rtx"?

Yes, it is.  I suppose for that, we might as well be consistent.

> It would also be nice if we could somehow mark the const_int_rtx array
> as const or unchanging once initialized?

I can't think of any way.


r~


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