public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54240] New: Routine hoist_adjacent_loads does not work properly after r189366
@ 2012-08-13 12:26 ysrumyan at gmail dot com
  2012-08-13 12:39 ` [Bug tree-optimization/54240] " rguenth at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: ysrumyan at gmail dot com @ 2012-08-13 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54240
           Summary: Routine hoist_adjacent_loads does not work properly
                    after r189366
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ysrumyan@gmail.com


This regression can be seen in the attached simple test-case - cmov conversion
is not happened. The fix is evident:

--- tree-ssa-phiopt.c   (revision 190151)
+++ tree-ssa-phiopt.c   (working copy)
@@ -1864,7 +1864,7 @@

       /* Check the mode of the arguments to be sure a conditional move
         can be generated for it.  */
-      if (!optab_handler (cmov_optab, TYPE_MODE (TREE_TYPE (arg1))))
+      if (optab_handler (cmov_optab, TYPE_MODE (TREE_TYPE (arg1)) ==
CODE_FOR_nothing))
        continue;

       /* Both statements must be assignments whose RHS is a COMPONENT_REF.  */

You can see this regression on any platform supporting conditional moves (I
tested it on x86).


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

end of thread, other threads:[~2012-08-15 13:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13 12:26 [Bug tree-optimization/54240] New: Routine hoist_adjacent_loads does not work properly after r189366 ysrumyan at gmail dot com
2012-08-13 12:39 ` [Bug tree-optimization/54240] " rguenth at gcc dot gnu.org
2012-08-13 12:41 ` rguenth at gcc dot gnu.org
2012-08-13 14:15 ` wschmidt at gcc dot gnu.org
2012-08-13 14:15 ` michael.v.zolotukhin at gmail dot com
2012-08-13 14:25 ` wschmidt at gcc dot gnu.org
2012-08-13 15:46 ` wschmidt at gcc dot gnu.org
2012-08-13 20:40 ` wschmidt at gcc dot gnu.org
2012-08-13 21:59 ` pinskia at gcc dot gnu.org
2012-08-14 11:44 ` wschmidt at gcc dot gnu.org
2012-08-14 11:47 ` rguenth at gcc dot gnu.org
2012-08-14 19:48 ` wschmidt at gcc dot gnu.org
2012-08-15 13:18 ` wschmidt at gcc dot gnu.org
2012-08-15 13:21 ` 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).