Re: [patch tree-optimization]: allow branch-cost optimization for truth-and/or on mode-expanded simple boolean-operands

2011-10-23 Thread Richard Guenther
On Fri, Oct 21, 2011 at 2:19 PM, Kai Tietz ktiet...@googlemail.com wrote: 2011/10/21 Richard Guenther richard.guent...@gmail.com: On Thu, Oct 20, 2011 at 3:08 PM, Kai Tietz kti...@redhat.com wrote: Hello, this patch re-enables the branch-cost optimization on simple boolean-typed operands,

Re: [patch tree-optimization]: allow branch-cost optimization for truth-and/or on mode-expanded simple boolean-operands

2011-10-21 Thread Kai Tietz
2011/10/21 Richard Guenther richard.guent...@gmail.com: On Thu, Oct 20, 2011 at 3:08 PM, Kai Tietz kti...@redhat.com wrote: Hello, this patch re-enables the branch-cost optimization on simple boolean-typed operands, which are casted to a wider integral type.  This happens due casts from

[patch tree-optimization]: allow branch-cost optimization for truth-and/or on mode-expanded simple boolean-operands

2011-10-20 Thread Kai Tietz
Hello, this patch re-enables the branch-cost optimization on simple boolean-typed operands, which are casted to a wider integral type. This happens due casts from boolean-types are preserved, but FE might expands simple-expression to wider mode. I added two tests for already working