This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49749] Reassociation rank algorithm does not include all non-NULL operands
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jul 2011 20:16:34 +0000
- Subject: [Bug tree-optimization/49749] Reassociation rank algorithm does not include all non-NULL operands
- Auto-submitted: auto-generated
- References: <bug-49749-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49749
--- Comment #6 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2011-07-15 20:15:09 UTC ---
We ran some experiments attempting to restore the r161839 behavior, either by
lowering the rank of memory references or raising the rank of phi references.
Although both experiments restored bwaves code generation to respectability,
several other benchmarks suffered, so this is not a general answer. Any
thoughts on more limited heuristics that might help the bwaves scenario?
It seems that copyrename needs help from reassoc to find the opportunity;
perhaps reassoc can be tweaked to recognize situations that will help
copyrename downstream?