On Fri, Jan 17, 2020 at 05:01:24PM -0500, David Malcolm wrote: > Is there a way to force the use of this optimization at -O2, or is it > always going to be target dependent?
You could try --param logical-op-non-short-circuit=0 , --param logical-op-non-short-circuit=1 and/or -mbranch-cost= (the last one only on selected targets that do support that option). Jakub