[cfe-commits] r59105 - /cfe/trunk/lib/AST/ExprConstant.cpp
sabre at nondot.org
Wed Nov 12 14:33:37 PST 2008
On Nov 12, 2008, at 2:26 PM, Fariborz Jahanian wrote:
> On Nov 11, 2008, at 11:04 PM, Chris Lattner wrote:
>> Author: lattner
>> Date: Wed Nov 12 01:04:29 2008
>> New Revision: 59105
>> URL: http://llvm.org/viewvc/llvm-project?rev=59105&view=rev
>> Teach the aggressive constant folder to fold X && 0 -> 0 and X || 1 -
> I assume that you care that 'X' has no side-effect here.
In this code, it doesn't matter if X has side effects. It is
determining if an expression evaluates to a constant, not whether it
can be dropped or replaced by a constant.
More information about the cfe-commits