public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46728] New: GCC no longer generates fmadd for pow (x, 0.75)+y on powerpc
@ 2010-11-30 18:49 meissner at gcc dot gnu.org
  2010-12-01 13:47 ` [Bug tree-optimization/46728] " rguenth at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: meissner at gcc dot gnu.org @ 2010-11-30 18:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46728

           Summary: GCC no longer generates fmadd for pow (x, 0.75)+y on
                    powerpc
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: meissner@gcc.gnu.org
              Host: powerpc64-linux
            Target: powerpc64-linux
             Build: powerpc64-linux


Created attachment 22582
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22582
Test file that when compiled with -ffast-math -mcpu=power6 shows the bug

With Richard Henderson's change on 2010-11-16 to move the FMA generation to the
gimple level, and remove all of the combiners in the backend for fma, the
compiler now does not generate a fma for the __builtin_pow (x, 0.75)
optimization if the result of the pow is added to another value.  Now, the
actual benchmark that prompted adding the __builtin_pow (x, 0.75) optimization
does not combine the pow with an add, other people might run into it.

This is due to the fact that the pow transformation is done at the rtl level,
and not the tree level, and with the combiners removed, the compiler does not
do the transformation.  The right solution is to move this optimization to the
tree level.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-03-12 19:46 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-30 18:49 [Bug tree-optimization/46728] New: GCC no longer generates fmadd for pow (x, 0.75)+y on powerpc meissner at gcc dot gnu.org
2010-12-01 13:47 ` [Bug tree-optimization/46728] " rguenth at gcc dot gnu.org
2010-12-01 15:48 ` [Bug tree-optimization/46728] [4.6 Regression] " pinskia at gcc dot gnu.org
2011-01-03 20:29 ` rguenth at gcc dot gnu.org
2011-02-04 18:11 ` meissner at gcc dot gnu.org
2011-02-08 13:49 ` [Bug tree-optimization/46728] GCC does not generate " rguenth at gcc dot gnu.org
2011-04-01 19:17 ` meissner at gcc dot gnu.org
2011-05-24 18:23 ` wschmidt at gcc dot gnu.org
2011-05-24 18:35 ` wschmidt at gcc dot gnu.org
2011-05-25 13:51 ` wschmidt at gcc dot gnu.org
2011-05-25 13:53 ` wschmidt at gcc dot gnu.org
2011-05-27 19:20 ` wschmidt at gcc dot gnu.org
2011-05-27 19:52 ` wschmidt at gcc dot gnu.org
2011-05-30 17:42 ` wschmidt at gcc dot gnu.org
2011-06-06 14:28 ` wschmidt at gcc dot gnu.org
2011-06-07 15:13 ` wschmidt at gcc dot gnu.org
2011-06-07 15:24 ` wschmidt at gcc dot gnu.org
2011-11-11 19:25 ` wschmidt at gcc dot gnu.org
2012-03-12  2:27 ` fang at csl dot cornell.edu
2012-03-12 12:37 ` wschmidt at gcc dot gnu.org
2012-03-12 18:28 ` wschmidt at gcc dot gnu.org
2012-03-12 19:46 ` wschmidt at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).