This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/66313] Unsafe factorization of a*b+a*c
- 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: Wed, 31 May 2017 09:19:10 +0000
- Subject: [Bug middle-end/66313] Unsafe factorization of a*b+a*c
- Auto-submitted: auto-generated
- References: <bug-66313-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66313
--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 41441
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41441&action=edit
patch
Patch I am testing, I finally managed to convince tailrecursion optimization to
handle the case in gcc.dg/tree-ssa/tailrecursion-6.c after the fix to the
folding.
If testing goes well I'll commit this to trunk.