I knew that doing transformations at earlier stage would be cleaner solution. But, due to some reason, I'm not able to do it at earlier stages.
But I was thinking that some optimizations such as CSE, loop optimizations, should be reusable, and hence was exploring the idea of using them after my transformation. But current GCC pass manager doesn't seem to allow this. Specifically, it seems that I cannot ask pass manager to execute pass Pi, if I have already executed pass Pj where i < j. That's why I posted this question. ~ Niranjan On Fri, Mar 18, 2011 at 9:23 PM, Paul Koning <paul_kon...@dell.com> wrote: > I don't know the answer to your specific question, but I was wondering: if > you think it is useful to do optimization again, I think that means that the > transformations you have in mind should be done at an earlier stage. > > By the time you hit register allocation, it's almost too late for anything. > > paul > > On Mar 18, 2011, at 9:03 PM, Niranjan Hasabnis wrote: > >> Hello, >> >> I'm using GCC plugin to do some analysis and modification on strict-RTL. >> Both things are done after all optimization passes are over, and just >> before strict-RTL is converted into assembly. >> I would be happy to know if it is possible to execute all already >> executed optimization passes again after my analysis. >> >> I read GCC online documentation, but I could not find answer to the question. >> It seems to me that pass manager also does not allow something like this. >> >> I went through the mailing list archive to find out if this question >> is already answered, but I couldn't find any. >> Please forgive me if this is already answered. >> >> -- >> >> Thanks, >> Niranjan Hasabnis, >> PhD student, >> Stony brook University. > > -- Thanks, Niranjan Hasabnis, PhD student, Secure Systems Lab, Stony brook University, Stony brook, NY.