cse.c:hash_rtx has the same problem as found before in cse.c:cselib_hash_rtx (PR rtl-optimization/22445). Hence, some optimiztions will only be done if there is a convenient hash collision.
I.e. the MODE should not be used to calculate the hash value. -- Summary: Some cse optimizations require hash collisions Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amylaar at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28108