[LLVMbugs] [Bug 1111] NEW: instcombine miscompiles fp X == X

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 14 11:26:13 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1111

           Summary: instcombine miscompiles fp  X == X
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


instcombine isn't handling nan's right when folding fcmp X, X.  For example, it turns this into false:

define i1 %test(double %X) {
        %tmp = fcmp une double %X, %X           ; <i1> [#uses=1]
        ret i1 %tmp
}

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list