[LLVMbugs] [Bug 717] NEW: undef through phi doesn't collapse to undef when it ought

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Mar 9 11:13:34 PST 2006


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=717

           Summary: undef through phi doesn't collapse to undef when it
                    ought
           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 = 4;
    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