[(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM
This is a recommit of r316869 which was speculatively reverted with r317444 and subsequently shown to not be the cause of PR35210. That crash should be fixed after r318237. Original commit message: The old PM sets the options of what used to be known as "latesimplifycfg" on the instantiation after the vectorizers have run, so that's what we'redoing here. FWIW, there's a later SimplifyCFGPass instantiation in both PMs where we do not set the "late" options. I'm not sure if that's intentional or not. Differential Revision: https://reviews.llvm.org/D39407 llvm-svn: 318299
Showing
- llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h 8 additions, 8 deletionsllvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
- llvm/lib/Passes/PassBuilder.cpp 7 additions, 2 deletionsllvm/lib/Passes/PassBuilder.cpp
- llvm/test/Transforms/PhaseOrdering/simplifycfg-options.ll 25 additions, 54 deletionsllvm/test/Transforms/PhaseOrdering/simplifycfg-options.ll
Loading
Please register or sign in to comment