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 alpha and arm bootstrap failures


On Wed, Feb 26, 2003 at 02:50:37PM -0700, Roger Sayle wrote:
> But we handle const, pure, nothrow and malloc attributes on
> arbitrary non-libcall functions just fine without having to use
> REG_EQUAL notes.

How's that?  What other mechanism do we use to prove that 
two calls to foo are identical?

> I agree we could add special cases to ignore REG_EQUAL notes
> whereever we also have a REG_RETVAL note, but I was under the
> impression that we're trying to move away from libcalls.

No, we're trying to move away from emit_libcall{,value}.
That's not the same thing.

> We can also recover much of our ability to CSE/GCSE by using
> perfectly valid REG_EQUAL notes, such as "REG_EQUAL (lt:DF (reg:DF 1)
> (reg: DF 2))" rather than the current "REG_EQUAL (expr_list ((symbol_ref
> "__ltfdf2") (expr_list (reg:DF 1)..."

Except that lt:DF would evaluate to FLOAT_STORE_FLAG_VALUE and lt:SI
would evaluate to STORE_FLAG_VALUE.  Neither of which is what __ltfdf2
returns.  And this is completely irrelevant for a user's

	extern int foo(int) __attribute__((const));

> Do you have a strong preference on the best mid/long term solution?

Long term, tree-ssa will make this all moot.  There's no point
in trying to change our scheme for rtl.


r~


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