diff options
author | Jessica Paquette <jpaquette@apple.com> | 2017-03-06 21:31:18 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2017-03-06 21:31:18 +0000 |
commit | 596f483a5eb14a8b7b7ea92aa7337cdd3a1e66fd (patch) | |
tree | bb5fe1900ec82ee62a354e1be6c0e1e9c56d8377 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | dd4f5c5364ddd1a1c3d0f1d0e926ca928aa7a9fd (diff) | |
download | bcm5719-llvm-596f483a5eb14a8b7b7ea92aa7337cdd3a1e66fd.tar.gz bcm5719-llvm-596f483a5eb14a8b7b7ea92aa7337cdd3a1e66fd.zip |
[Outliner] Fixed Asan bot failure in r296418
Fixed the asan bot failure which led to the last commit of the outliner being reverted.
The change is in lib/CodeGen/MachineOutliner.cpp in the SuffixTree's constructor. LeafVector
is no longer initialized using reserve but just a standard constructor.
llvm-svn: 297081
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 271f5c3c94e..09ca1de21a8 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -92,6 +92,9 @@ static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden, cl::desc("Verify generated machine code"), cl::init(false), cl::ZeroOrMore); +static cl::opt<bool> EnableMachineOutliner("enable-machine-outliner", + cl::Hidden, + cl::desc("Enable machine outliner")); static cl::opt<std::string> PrintMachineInstrs("print-machineinstrs", cl::ValueOptional, @@ -674,6 +677,9 @@ void TargetPassConfig::addMachinePasses() { addPass(&XRayInstrumentationID, false); addPass(&PatchableFunctionID, false); + if (EnableMachineOutliner) + PM->add(createMachineOutlinerPass()); + AddingMachinePasses = false; } |