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 >> Log: >> Teach the aggressive constant folder to fold X && 0 -> 0 and X || 1 - >>> 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. -Chris _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
