Skip to content
  • Dan Gohman's avatar
    Arithmetic instructions don't set EFLAGS bits OF and CF bits · ff659b5b
    Dan Gohman authored
    the same say the "test" instruction does in overflow cases,
    so eliminating the test is only safe when those bits aren't
    needed, as is the case for COND_E and COND_NE, or if it
    can be proven that no overflow will occur. For now, just
    restrict the optimization to COND_E and COND_NE and don't
    do any overflow analysis.
    
    llvm-svn: 66318
    ff659b5b
Loading