dalibocai
dalibocai

Reputation: 2347

pass order in passmanager in LLVM

What is the order of the passes to be applied to IR if they are added by PassManager? Is it the same order as they were added?

Upvotes: 0

Views: 1564

Answers (1)

Anton Korobeynikov
Anton Korobeynikov

Reputation: 9324

Yes. However, if there are some dependent passes they are added as well and then everything (=scheduling of passes) will depend on whether the given pass invalidates the result of some other or note.

Upvotes: 2

Related Questions