[FixIrreducible][NewPM] Port -fix-irreducible to NPM
authorArthur Eubanks <aeubanks@google.com>
Thu, 8 Oct 2020 15:53:00 +0000 (08:53 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 9 Oct 2020 16:22:09 +0000 (09:22 -0700)
commit0689dab8443fd196c239cfee8a4bfd289a9458bf
treef7da8fc71bd2c48b1f44e0fcd29fc5e89f9fc834
parent9c21c6c96630c1dbc9dadbdc55717822acea7b17
[FixIrreducible][NewPM] Port -fix-irreducible to NPM

In the NPM, a pass cannot depend on another non-analysis pass. So pin
the test that tests that -lowerswitch is run automatically to legacy PM.

Reviewed By: sameerds

Differential Revision: https://reviews.llvm.org/D89051
llvm/include/llvm/Transforms/Utils/FixIrreducible.h [new file with mode: 0644]
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Utils/FixIrreducible.cpp
llvm/test/Transforms/FixIrreducible/basic.ll
llvm/test/Transforms/FixIrreducible/switch.ll