possible gcse failure: not able to eliminate redundant loads
Richard Henderson
rth@redhat.com
Mon Dec 16 13:32:00 GMT 2002
On Mon, Dec 16, 2002 at 10:04:01PM +0100, Toon Moene wrote:
> BTW, I wasn't aware it's legal to dereference NULL C pointers.
It isn't, of course. But that's the whole point. You've
got code that says
x = (condition ? *p : 0);
i.e. the dereference is protected by a conditional. Thus
we can't hoist the dereference past the conditional (and
thence out of the loop that started this thread).
r~
More information about the Gcc
mailing list