HomePhabricator

[(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM

Description

[(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

Details

Committed
spatelNov 15 2017, 8:33 AM
Differential Revision
D39407: [(new) Pass Manager] instantiate SimplifyCFG with the same options as the old PM
Parents
rL318298: [Reassociate] simplify code; NFCI
Branches
Unknown
Tags
Unknown