This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2009 17:45:49 -0000
- Subject: [Bug middle-end/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops
- References: <bug-39794-13999@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2009-04-20 17:45 -------
Created an attachment (id=17656)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17656&action=view)
gcc45-pr39794.patch
So shouldn't it use cselib_subst_to_values similarly to e.g. how sched-deps.c
uses it? Completely untested patch (also there is one uncovered
canon_true_dependence during global DSE), which fixes the testcase, but I
haven't tried to find out whether this pessimizes code that DSE should actually
optimize.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39794