[Bug tree-optimization/36038] [4.4 Regression] miscompiled loop in perlbmk for -Os
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 20 13:46:00 GMT 2008
------- Comment #5 from jakub at gcc dot gnu dot org 2008-10-20 13:45 -------
Created an attachment (id=16516)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16516&action=view)
gcc44-pr36038.patch
My bet is that adding a zero based alternative IV for a pointer is always a
bug,
the zero based IV will necessarily act as an offset to some other pointer (the
original pointer).
With this patch the ivopts dump looks much saner, the ivtmp is sizetype and
so nothing is cast to and back from a pointer all the time, additionally vrp2
doesn't optimize it out and so the testcase succeeds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36038
More information about the Gcc-bugs
mailing list