------- 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