Re: {patch tree-ssa-math-opts]: Change searching direction for bswap

2011-06-28 Thread Richard Guenther
On Tue, Jun 28, 2011 at 11:29 AM, Kai Tietz wrote: > Oh, missed to fill comment. > Thanks, > Kai > > Index: gcc-head/gcc/tree-ssa-math-opts.c > === > --- gcc-head.orig/gcc/tree-ssa-math-opts.c > +++ gcc-head/gcc/tree-ssa-math-opts.

Re: {patch tree-ssa-math-opts]: Change searching direction for bswap

2011-06-28 Thread Kai Tietz
Oh, missed to fill comment. Thanks, Kai Index: gcc-head/gcc/tree-ssa-math-opts.c === --- gcc-head.orig/gcc/tree-ssa-math-opts.c +++ gcc-head/gcc/tree-ssa-math-opts.c @@ -1821,7 +1821,11 @@ execute_optimize_bswap (void) {

Re: {patch tree-ssa-math-opts]: Change searching direction for bswap

2011-06-28 Thread Richard Guenther
On Mon, Jun 27, 2011 at 7:33 PM, Kai Tietz wrote: > Hello, > > this is the separated patch for issues noticed by doing type-sinking on > bitwise-operations.  The tests exposed that bswap pattern-matching searches > from top to down for each BB. As it replaces the found match for a bswap in > tr

{patch tree-ssa-math-opts]: Change searching direction for bswap

2011-06-27 Thread Kai Tietz
Hello, this is the separated patch for issues noticed by doing type-sinking on bitwise-operations. The tests exposed that bswap pattern-matching searches from top to down for each BB. As it replaces the found match for a bswap in tree, but doesn't know about handling its inserted builtin-swap