[(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM
authorSanjay Patel <spatel@rotateright.com>
Sun, 29 Oct 2017 20:49:31 +0000 (20:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 29 Oct 2017 20:49:31 +0000 (20:49 +0000)
commitadf38911d8211ba3928bd28e44e4b7a8697e0752
tree7f896d2e3ebedffeddf3728c2553ea9a875a8021
parent61921f779f78182cb0c070d5a6debf378ef6fbd4
[(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM

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: 316869
llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Transforms/PhaseOrdering/simplifycfg-options.ll