Re: [patch tree-optimization 2/2]: Branch-cost optimizations

2011-11-07 Thread Richard Guenther
On Mon, Nov 7, 2011 at 5:07 PM, Kai Tietz wrote: > 2011/11/7 Richard Guenther : >> On Sun, Nov 6, 2011 at 11:17 PM, Kai Tietz wrote: >>> Hello, >>> >>> the second patch extends the tree-ssa-ifcombine pass so, that it chains up >>> simple if-and/or-if patterns via associative bitwise-and/or opera

Re: [patch tree-optimization 2/2]: Branch-cost optimizations

2011-11-07 Thread Kai Tietz
2011/11/7 Richard Guenther : > On Sun, Nov 6, 2011 at 11:17 PM, Kai Tietz wrote: >> Hello, >> >> the second patch extends the tree-ssa-ifcombine pass so, that it chains up >> simple if-and/or-if patterns via associative bitwise-and/or operations.   >> This allows for example optimization for case

Re: [patch tree-optimization 2/2]: Branch-cost optimizations

2011-11-07 Thread Richard Guenther
On Sun, Nov 6, 2011 at 11:17 PM, Kai Tietz wrote: > Hello, > > the second patch extends the tree-ssa-ifcombine pass so, that it chains up > simple if-and/or-if patterns via associative bitwise-and/or operations.  This > allows for example optimization for cases like: > > if (c == 0) return 2; >

[patch tree-optimization 2/2]: Branch-cost optimizations

2011-11-06 Thread Kai Tietz
Hello, the second patch extends the tree-ssa-ifcombine pass so, that it chains up simple if-and/or-if patterns via associative bitwise-and/or operations. This allows for example optimization for cases like: if (c == 0) return 2; if (c == 1) return 2; if (c == 2) return 2; ... as now reassocia