This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/33257] guaranteed-true test not optimized away when input values later used



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-08-31 09:29 -------
We don't optimize the following at the tree level either but only combine get's
this.

void foo_u_3_noprint (unsigned x) {
    unsigned q = x / 3, r = x % 3;
    if (q * 3 + r != x) abort();
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33257


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]