[LLVMbugs] [Bug 6940] New: SCCP miscompiles sitofp(undef)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 26 07:58:32 PDT 2010


           Summary: SCCP miscompiles sitofp(undef)
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu

On this testcase:

define double @foo() {
  %t = sitofp i32 undef to double
  ret double %t

SCCP changes the sitofp operand to undef. This is over-aggressive, since there
exist double values which sitofp cannot produce. For comparison, instcombine on
this testcase changes the operand to 0.0.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list