This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR34916, 35519 Combine (Dataflow merge regression.)
On Tue, Mar 18, 2008 at 11:27 PM, Andy H <hutchinsonandy@aim.com> wrote:
> Please refer to PR35519 which contains a detailed explanation.
>
> *http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35519*
>
> If necessary, I can provide further clarification.
>
> Anything is cheaper than the current bug but I could not figure out a
> cheaper way to solve issue.
>From the comment it seems you could get away just checking the first element
for the duplicate and not bother to continue walking if that didn't match.
You can add a ENABLE_CHECKING path that verifies this assumption.
Otherwise I think the log-links are a poor data structure ;)
Richard.