[PATCH] Enhance ifcombine to recover non short circuit branches
Marc Glisse
marc.glisse@inria.fr
Wed Oct 16 12:22:00 GMT 2013
On Wed, 16 Oct 2013, Zhenqiang Chen wrote:
> The patch enhances ifcombine pass to recover some non short circuit
> branches. Basically, it will do the following transformation:
>
> Case 1:
> if (cond1)
> if (cond2)
> ==>
> if (cond1 && cond2)
Hello,
it might be more clear if you wrote (cond1 & cond2) so it can't be
confused with a short-circuit?
Using branch probabilities to guide the decision would be nice, don't know
how hard that would be though.
--
Marc Glisse
More information about the Gcc-patches
mailing list