There are only two used in the IR optimization pipeline.
Port these and add them to the default pipeline.
Similar to https://reviews.llvm.org/D93863.
I added -mtriple to some tests since under the new PM, the passes are
only available when the TargetMachine is specified.
clang-tidy: warning: invalid case style for member 'x' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for member 'y' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for member 'z' [readability-identifier-naming]
not useful