Constant folding includes a bunch of rules that might work together.  I don't have a specific example in mind though.