This is the mail archive of the gcc@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: regrename creates invalid insn


Ian Lance Taylor <iant@google.com> writes:

> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> Ian Lance Taylor <iant@google.com> writes:
>>
>>> But it also looks like the pattern should use a match_scratch.
>>
>> It is also used as input in operand 2.
>
> Sorry, I missed that.

That appears not to be an issue actually, there is already one use of
match_scratch together with a matching constraint in *cmpdi_internal.
But then, using match_scratch instead of match_operand doesn't really
fix the bug either (it only helps a simplified test case, but not the
original one).

> This still seems like a bug in regrename to me, but it also seems like
> an unusual case, so it is less surprising that it hasn't been seen
> before.

Since regrename is only auto-enabled with -funroll-loops it is probably
not much tested anyway.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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