Joseph S. Myers wrote: > On Fri, 6 Mar 2009, Geert Bosch wrote: > >>> this task may be more difficult. So lowering them early during >>> gimplification looks like a more reasonable plan IMHO. >> Right, that was my intention. Still, I'll need to add code to >> handle the new tree codes in fold(), right? > > If you add new trapping codes to GENERIC I'd recommend *not* making fold() > handle them.
Constant folding should be done for them, though. > Either lower > the codes in gimplification, or handle them explicitly in a few GIMPLE > optimizations e.g. when constants are propagated in, but avoid general > folding for them. Definitely the former. Paolo