[LLVMbugs] [Bug 3354] apparent bad interaction between math and short-circuit

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jan 19 14:05:51 PST 2009


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


Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sharparrow1 at yahoo.com
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #4 from Eli Friedman <sharparrow1 at yahoo.com>  2009-01-19 16:05:51 ---
(In reply to comment #3)
> Reassociate was moving a constant expression to a different block under the
> assumption that constants can't have side effects.  I think that this is a
> reasonable expectation, so I changed x/0 to constant fold into undef as is
> allowed by langref.

That's only a workaround... what if the denominator is an unfoldable constant?


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