summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorGeoff Berry <gberry@codeaurora.org>2017-10-03 16:59:13 +0000
committerGeoff Berry <gberry@codeaurora.org>2017-10-03 16:59:13 +0000
commitfabedbad116e0d830d152532cfa83b3bffd66d68 (patch)
treed11533e3f29a0915ee55b1c57e7c2cde2146d418 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent46a804cfd937211b6a8e07e1daa48f104e0c948f (diff)
downloadbcm5719-llvm-fabedbad116e0d830d152532cfa83b3bffd66d68.tar.gz
bcm5719-llvm-fabedbad116e0d830d152532cfa83b3bffd66d68.zip
Revert "Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding""
This reverts commit r314729. Another bug has been encountered in an out-of-tree target reported by Quentin. llvm-svn: 314814
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index c0aa0fb45f6..4584f65619c 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;
}
@@ -1069,10 +1064,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);
OpenPOWER on IntegriCloud