[NewPM] Handle -simplifycfg in opt
authorArthur Eubanks <aeubanks@google.com>
Tue, 23 Jun 2020 23:11:59 +0000 (16:11 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 24 Jun 2020 15:20:08 +0000 (08:20 -0700)
commitfcf0741262c6b0f37f641020f0e5f5e3f5468f2d
tree84b3002e35d4718eae0a3cd6ac8f199a96184244
parentbdceefe95ba6a3057947705ae7a48bfcbaed2f64
[NewPM] Handle -simplifycfg in opt

Summary:
-simplifycfg is the legacy pass name for SimplifyCFGPass.

There is already -simplify-cfg in FUNCTION_PASS_WITH_PARAMS which
handles options for SimplifyCFGPass. Maybe that should be renamed to
-simplifycfg as well?

This reduces the number of check-llvm failures under NewPM from 2619 to 2392.

Reviewers: hans, leonardchan, asbirlea, ychen

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82421
llvm/lib/Passes/PassRegistry.def