http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45948
--- Comment #5 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-02 19:19:46 UTC --- First patch here: http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00216.html However, I am not fully happy with this fix that tweaks scev const prop to work around this bug... The other fix that I am thinking about is that we test for scalar dependences outside the loop in the loop distribution pass, but it seems like rdg_defs_used_in_other_loops_p does not handle this correctly... I'm still investigating.