summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorGeoff Berry <gberry@codeaurora.org>2018-02-27 16:59:10 +0000
committerGeoff Berry <gberry@codeaurora.org>2018-02-27 16:59:10 +0000
commita2b901129099b93f20e8cdf41f520e31398c0c4d (patch)
treedce027ceb74117c28b4d882383b8ebb172de0fd7 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent3bfa8f01207f907551c8ea39a938e0f2f8ec018b (diff)
downloadbcm5719-llvm-a2b901129099b93f20e8cdf41f520e31398c0c4d.tar.gz
bcm5719-llvm-a2b901129099b93f20e8cdf41f520e31398c0c4d.zip
Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding"
Re-enable commit r323991 now that r325931 has been committed to make MachineOperand::isRenamable() check more conservative w.r.t. code changes and opt-in on a per-target basis. llvm-svn: 326208
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index bfe8f152a71..f502ae202c3 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -1083,6 +1083,10 @@ void TargetPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
// kill markers.
addPass(&StackSlotColoringID);
+ // Copy propagate to forward register uses and try to eliminate COPYs that
+ // were not coalesced.
+ addPass(&MachineCopyPropagationID);
+
// Run post-ra machine LICM to hoist reloads / remats.
//
// FIXME: can this move into MachineLateOptimization?
OpenPOWER on IntegriCloud