Hi,
We are doing a project which requires us to write a new pass to
recalculate the chain of recurrences and use them. We would like to do
this as an ipa pass plugin. For now we have got it working as a GIMPLE
pass. When we try to change it to an IPA pass, it gives seg fault. We
believe it is because some of the data structures are not populated
(i.e. they are populated later). So, we plan to recalculate all the data
required to recompute the chrecs. So, how do we go about finding which
passes populate the required data structures? As there are a large
number of GIMPLE passes before our pass, it would be impractical to
recreate all of them. Is there any other way?
More details:
Our gimple pass is just after pass vectorize (we just copied the code
in vectorize_loops).
We want the IPA pass after pass pta.
Related discussion http://gcc.gnu.org/ml/gcc/2014-01/msg00165.html
Thanks,
Balajiganapathi S