[LLVMbugs] [Bug 716] undef through phi doesn't collapse to undef
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Mar 9 10:57:52 PST 2006
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=716
sabre at nondot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From sabre at nondot.org 2006-03-09 12:57 -------
That optimization is invalid. If f is dynamically called with x==0, for example, it is required to return 0.
'ret undef' wouldn't do that.
The proper optimal result (which we do) is to compile this to 'return 0', which is correct for all defined
cases.
-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