Commit 72a32729 by Kai Tietz Committed by Kai Tietz

tree-ssa-math-opts.c (execute_optimize_bswap): Search within BB from last to first.

2011-06-28  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-math-opts.c (execute_optimize_bswap): Search
        within BB from last to first.

From-SVN: r175580
parent 88a00ef7
2011-06-28 Kai Tietz <ktietz@redhat.com>
* tree-ssa-math-opts.c (execute_optimize_bswap): Search
within BB from last to first.
2011-06-28 Joseph Myers <joseph@codesourcery.com>
* genattr-common.c: New. Based on genattr.c.
......
......@@ -1821,7 +1821,11 @@ execute_optimize_bswap (void)
{
gimple_stmt_iterator gsi;
for (gsi = gsi_after_labels (bb); !gsi_end_p (gsi); gsi_next (&gsi))
/* We do a reverse scan for bswap patterns to make sure we get the
widest match. As bswap pattern matching doesn't handle
previously inserted smaller bswap replacements as sub-
patterns, the wider variant wouldn't be detected. */
for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi))
{
gimple stmt = gsi_stmt (gsi);
tree bswap_src, bswap_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment