[NewPM][opt] Revert to legacy PM when any codegen passes are specified
This reduces the number of check-llvm failures by 500. Ideally we'd have a codegen version of PassRegistry.def, or have all the codegen passes ported and put into PassRegistry.def. But since that doesn't exist yet, hardcode the list of codegen IR passes. There are still codegen passes missing from this list, I'll add them later as I stumble upon them. Reviewed By: asbirlea, ychen Differential Revision: https://reviews.llvm.org/D84872
Loading
Please sign in to comment