[LLVMbugs] [Bug 716] NEW: undef through phi doesn't collapse to undef

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 9 10:55:30 PST 2006


           Summary: undef through phi doesn't collapse to undef
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca

Expressions involving undef get collapsed into undef properly, except for PHI
nodes. The following code should compile into "ret int undef". Instead, LLVM
produces "ret int 0":

  int f(int x)
    int y;
    if (x < 3) y = 0;
    return y;

------- 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