[MachineOutliner] Add always and never options to -enable-machine-outliner
authorJessica Paquette <jpaquette@apple.com>
Thu, 28 Jun 2018 16:39:42 +0000 (16:39 +0000)
committerJessica Paquette <jpaquette@apple.com>
Thu, 28 Jun 2018 16:39:42 +0000 (16:39 +0000)
commit1ccb66c5fb6f61fee8ea9dfcc99cca828c587bdb
treeab55fa10578c23d87aa875c56166e6aa3245c6ac
parent2103990e63a31e53a32434231b4faf4a00b6469b
[MachineOutliner] Add always and never options to -enable-machine-outliner

To enable the MachineOutliner by default on AArch64, we need to be able to
disable the MachineOutliner and also provide an option to "always" enable the
outliner.

This adds that capability. It allows the user to still use the old
-enable-machine-outliner option, which defaults to "always". This is building
up to allowing the user to specify "always" versus the target-default
outlining behaviour.

llvm-svn: 335872
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/test/CodeGen/AArch64/machine-outliner-flags.ll [new file with mode: 0644]