Re: [RFC] Add conditional compare support

2013-08-23 Thread Joseph S. Myers
On Wed, 21 Aug 2013, Zhenqiang Chen wrote: SHORT_CIRCUIT expression will be converted to CCMP expressions at the end of front-end. That doesn't sound like the right place to me. We want the same code to be generated whether users write and || directly or write corresponding sequences of if

Re: [RFC] Add conditional compare support

2013-08-23 Thread Richard Kenner
That doesn't sound like the right place to me. We want the same code to be generated whether users write and || directly or write corresponding sequences of if conditions. In general we want to move away from optimizing complicated expressions in fold-const, towards having GIMPLE

[RFC] Add conditional compare support

2013-08-21 Thread Zhenqiang Chen
Hi, Several ports in gcc support conditional compare instructions which is an efficient way to handle SHORT_CIRCUIT. But the information is not represented in TREE or GIMPLE. And it depends on BRANCH_COST and combine pass to generate the instructions. To explicitly represent the semantics of