[C Patch]: pr52543

Paolo Bonzini bonzini@gnu.org
Thu May 10 06:45:00 GMT 2012


Il 30/03/2012 12:08, Richard Sandiford ha scritto:
>> > +   There are two useful preprocessor defines for use by maintainers:  
>> > +
>> > +   #define LOG_COSTS
>> > +
>> > +   if you wish to see the actual cost estimates that are being used
>> > +   for each mode wider than word mode and the cost estimates for zero
>> > +   extension and the shifts.   This can be useful when port maintainers 
>> > +   are tuning insn rtx costs.
>> > +
>> > +   #define FORCE_LOWERING
>> > +
>> > +   if you wish to test the pass with all the transformation forced on.
>> > +   This can be useful for finding bugs in the transformations.
> Must admit I'm not keen on these kinds of macro, but it's Ian's call.

Indeed, LOG_COSTS should be (dump_flags & TDF_DETAILS) != 0, and perhaps
FORCE_LOWERING should be a -f flag (like -flower-all-subregs) or a --param.

Paolo



More information about the Gcc-patches mailing list