Running CSE within my pass

Hi All

I am trying to figure out how to run CSE within my pass (in the middle after making changes to the CFG), however it seems like the CSE pass functionality is not exposed. Any suggestions? Am I missing something?


In general, I think you may want to consider

  • structuring what you want to do into a sequence of passes and insert the CSE pass where you need it,
  • writing your pass in a way that CSE can be delayed until after the pass, or
  • writing CSE (or whatever functionality) as a utility and call it wherever you want (if it’s simple enough and does not require dependencies on other analyses),

if possible.

That may not always work, however.