On 07/17/2013 07:18 PM, David Malcolm wrote:
gcc/
Explicitly number the instances of passes within passes.def.
This is needed by a subsequent patch so that we can create
fields within the pipeline class for each pass instance (to help
locate pass instances when debugging).
* passes.c (NEXT_PASS_NUM): Define.
* passes.def (NEXT_PASS, NEXT_PASS_NUM): Replace uses of
NEXT_PASS on passes that have multiple instances with uses of
NEXT_PASS_NUM.
So this means we have to track down the instance number if we add a
duplicate pass in the pipeline. I can see positives and negatives of
doing that. I'll go along as I'm a proponent of the goal of having the
passes be a first class object.
Ok for the trunk.
Jeff