diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-09-04 15:47:00 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-09-04 15:47:00 +0000 |
commit | f71bb198edbaa0758a5ff58a49ed2fad58c92796 (patch) | |
tree | 0c030e5615b6d7583743ce6e2c93ba50b6eec61c /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | ee5dc70c7901142f8800cf63cf94dc84e925c5fa (diff) | |
download | bcm5719-llvm-f71bb198edbaa0758a5ff58a49ed2fad58c92796.tar.gz bcm5719-llvm-f71bb198edbaa0758a5ff58a49ed2fad58c92796.zip |
Revert "Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding""
This crashes on boringSSL on PPC (will send reduced testcase)
This reverts commit r312328.
llvm-svn: 312490
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 30a6ae97879..329768769f1 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -88,8 +88,6 @@ static cl::opt<bool> DisableCGP("disable-cgp", cl::Hidden, cl::desc("Disable Codegen Prepare")); static cl::opt<bool> DisableCopyProp("disable-copyprop", cl::Hidden, cl::desc("Disable Copy Propagation pass")); -static cl::opt<bool> DisableCopyPropPreRegRewrite("disable-copyprop-prerewrite", cl::Hidden, - cl::desc("Disable Copy Propagation Pre-Register Re-write pass")); static cl::opt<bool> DisablePartialLibcallInlining("disable-partial-libcall-inlining", cl::Hidden, cl::desc("Disable Partial Libcall Inlining")); static cl::opt<bool> EnableImplicitNullChecks( @@ -254,9 +252,6 @@ static IdentifyingPassPtr overridePass(AnalysisID StandardID, if (StandardID == &MachineCopyPropagationID) return applyDisable(TargetID, DisableCopyProp); - if (StandardID == &MachineCopyPropagationPreRegRewriteID) - return applyDisable(TargetID, DisableCopyPropPreRegRewrite); - return TargetID; } @@ -1072,10 +1067,6 @@ void TargetPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) { // Allow targets to change the register assignments before rewriting. addPreRewrite(); - // Copy propagate to forward register uses and try to eliminate COPYs that - // were not coalesced. - addPass(&MachineCopyPropagationPreRegRewriteID); - // Finally rewrite virtual registers. addPass(&VirtRegRewriterID); |