This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Enhance ifcombine to recover non short circuit branches


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]