This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23471] a*a (for signed ints with -fno-wrapv) is always postive
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2016 11:22:07 +0000
- Subject: [Bug tree-optimization/23471] a*a (for signed ints with -fno-wrapv) is always postive
- Auto-submitted: auto-generated
- References: <bug-23471-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23471
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
There is tools in tree-ssa-math-opts.c (powi_as_mults) for this, plus this
"re-association" is valid for all TYPE_OVERFLOW kinds.