search for: mypassimpl

Displaying 1 result from an estimated 1 matches for "mypassimpl".

2018 Aug 11
3
ScalarEvolution in a ModulePass
...examines a particular Function, it calls the appropriate lambda to get the analysis for that Function. The problem seems to arise when lambdas for other analysis FunctionPasses run after calling the GetSE lambda, e.g., when evaluating a statement like this: for (Function &F : M) Changed |= MyPassImpl(F, GetSE(F), GetDT(F), GetLI(F), GetORE(F), ...).run(); It appears that these other analysis FunctionPasses can cause ScalarEvolutionWrapperPass::runOnFunction() to rerun after GetSE() returns a pointer to a ScalarEvolution, which changes the underlying ScalarEvolution object that the wrapper pas...