[llvm] [LowerSwitch] Don't let pass manager handle the dependency (PR #68662)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 01:06:21 PDT 2023


jayfoad wrote:

> Some passes has limitation that only support simple terminators: branch/unreachable/return. Right now, they ask the pass manager to add LowerSwitch pass to eliminate `switch`. Let's manage such kind of pass dependency by ourselves. Also add the assertion in the related passes.

I have no objections, but why do you think it is better to do it this way?



https://github.com/llvm/llvm-project/pull/68662


More information about the llvm-commits mailing list