summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-08-31 05:56:16 +0000
committerEric Christopher <echristo@gmail.com>2017-08-31 05:56:16 +0000
commite42ac21499c103a4b1052e759618ecbd35207d6c (patch)
tree7b878aad86223de56930fa0b6be5e5fa635efca8 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent376f1bd73cdc8219b288400798e1f0d205d2ca77 (diff)
downloadbcm5719-llvm-e42ac21499c103a4b1052e759618ecbd35207d6c.tar.gz
bcm5719-llvm-e42ac21499c103a4b1052e759618ecbd35207d6c.zip
Temporarily revert "Update branch coalescing to be a PowerPC specific pass"
From comments and code review it wasn't intended to be enabled by default yet. This reverts commit r311588. llvm-svn: 312214
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 34d96a81130..481baea2dff 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -919,6 +919,9 @@ void TargetPassConfig::addMachineSSAOptimization() {
addPass(&MachineLICMID, false);
addPass(&MachineCSEID, false);
+ // Coalesce basic blocks with the same branch condition
+ addPass(&BranchCoalescingID);
+
addPass(&MachineSinkingID);
addPass(&PeepholeOptimizerID);
OpenPOWER on IntegriCloud