This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/66127] Division by zero gets folded away
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 May 2015 16:06:50 +0000
- Subject: [Bug middle-end/66127] Division by zero gets folded away
- Auto-submitted: auto-generated
- References: <bug-66127-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66127
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Ideally the front-end folding of expressions-of-constants might avoid
folding-for-optimization such as this (instead just folding cases where
the evaluated operands are actually constants, so not folding anything
where 1 / 0 is an evaluated operand).