[LegacyPM] Port example pass SimplifyCFG to new PM
authorSebastian Peryt <sebastian.peryt@intel.com>
Tue, 10 Jan 2023 23:15:42 +0000 (15:15 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 10 Jan 2023 23:42:01 +0000 (15:42 -0800)
commitd291f1fd094538af705541045c0d9c3ceb85e71d
treec73f9951bd91e7220191da286d31dff47ceae5e1
parent5c126e35c149c1ae8ea2ca5192edb299a8e4fc64
[LegacyPM] Port example pass SimplifyCFG to new PM

This is part of effort in removing -enable-new-pm flag.
As a prat of this effort one of example passes SimplifyCFG must
be ported to new PM which will allow to remove the flag
calls from the tests that are using this pass.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D137103
18 files changed:
llvm/examples/IRTransforms/CMakeLists.txt
llvm/examples/IRTransforms/InitializePasses.cpp [deleted file]
llvm/examples/IRTransforms/InitializePasses.h [deleted file]
llvm/examples/IRTransforms/SimplifyCFG.cpp
llvm/examples/IRTransforms/SimplifyCFG.h [deleted file]
llvm/test/CMakeLists.txt
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg1.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg2-dead-block-order.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg3-phis.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg4-multiple-duplicate-cfg-updates.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg5-del-phis-for-dead-block.ll
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg6-dead-self-loop.ll
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in
llvm/tools/opt/CMakeLists.txt
llvm/tools/opt/opt.cpp
llvm/utils/gn/secondary/llvm/test/BUILD.gn