[LLVMdev] LoopPass doFinalization() called multiple times per program?
baldrick at free.fr
Mon Dec 17 05:12:50 PST 2012
On 17/12/12 14:00, Chandler Carruth wrote:
> On Mon, Dec 17, 2012 at 4:57 AM, Duncan Sands <baldrick at free.fr
> <mailto:baldrick at free.fr>> wrote:
> would it still be possible to optimize and codegen functions as they are output
> (rather than waiting for the module to be completely output before doing this)?
> I would assume so... What gives you pause here?
> (TBH, I've not really thought about this deeply, so I may be missing something
it depends what passes are doing in their doInitialization method. If they are
inspecting the module contents and reasoning based on that then that won't work
properly if the module is incomplete. Requires a pass audit I guess to see what
passes are actually doing.
More information about the llvm-dev