diff options
author | Eric Christopher <echristo@gmail.com> | 2017-08-31 05:56:16 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-08-31 05:56:16 +0000 |
commit | e42ac21499c103a4b1052e759618ecbd35207d6c (patch) | |
tree | 7b878aad86223de56930fa0b6be5e5fa635efca8 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 376f1bd73cdc8219b288400798e1f0d205d2ca77 (diff) | |
download | bcm5719-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/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 18426bdb6bf..bc5d32b37fd 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -40,10 +40,6 @@ using namespace llvm; - -static cl::opt<bool> - DisableBranchCoalescing("disable-ppc-branch-coalesce", cl::Hidden, - cl::desc("disable coalescing of duplicate branches for PPC")); static cl:: opt<bool> DisableCTRLoops("disable-ppc-ctrloops", cl::Hidden, cl::desc("Disable CTR loops for PPC")); @@ -382,10 +378,6 @@ bool PPCPassConfig::addInstSelector() { } void PPCPassConfig::addMachineSSAOptimization() { - // PPCBranchCoalescingPass need to be done before machine sinking - // since it merges empty blocks. - if (!DisableBranchCoalescing && getOptLevel() != CodeGenOpt::None) - addPass(createPPCBranchCoalescingPass()); TargetPassConfig::addMachineSSAOptimization(); // For little endian, remove where possible the vector swap instructions // introduced at code generation to normalize vector element order. |