The "stuck" situation happens when calling
AU.addRequired<AnalysisPass>() inside the OptimizationPass's
The opt tool seems to run into an infinite loop (on trivial testcases,
which should finish in a flash of a second).
Seems the Pass type between Analysis Pass and Optimization Pass has to
I wonder if this is documented somewhere?
Is there a simple rule to guide this?
if the Optimization Pass needs to be a LoopPass, does it mean the
AnalysisPass _has to_ be a Loop Pass as well?