[LLVMdev] [cfe-dev] conditional operator

Eli Friedman eli.friedman at gmail.com
Tue Jul 20 10:13:18 PDT 2010

On Tue, Jul 20, 2010 at 9:59 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
>> The reason for this is that C requires that only the value which is needed
>> is evaluated. If one of the selected values has a side effect, this becomes significant.
> Ah, I see. But in my case I have only normal variables (local or
> global), no volatile and no functions.
> Therefore I wonder why the optimizer misses it in some cases (with globals).

It normally gets optimized... can you attach a testcase?


More information about the llvm-dev mailing list