OSDN Git Service

Update branch coalescing to be a PowerPC specific pass
authorLei Huang <lei@ca.ibm.com>
Tue, 12 Sep 2017 18:39:11 +0000 (18:39 +0000)
committerLei Huang <lei@ca.ibm.com>
Tue, 12 Sep 2017 18:39:11 +0000 (18:39 +0000)
commitc64508a42f8c84b25b40769016cddce4548abdab
treed9905ad1491d9cf66108b4743ce66c1e0da0e2f8
parentc6a7215922d91d98b22e964612258de38d07203d
Update branch coalescing to be a PowerPC specific pass

Implementing this pass as a PowerPC specific pass.  Branch coalescing utilizes
the analyzeBranch method which currently does not include any implicit operands.
This is not an issue on PPC but must be handled on other targets.

Pass is currently off by default. Enabled via -enable-ppc-branch-coalesce.

Differential Revision : https: // reviews.llvm.org/D32776

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313061 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Passes.h
include/llvm/InitializePasses.h
lib/CodeGen/CMakeLists.txt
lib/CodeGen/CodeGen.cpp
lib/CodeGen/TargetPassConfig.cpp
lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCBranchCoalescing.cpp [moved from lib/CodeGen/BranchCoalescing.cpp with 88% similarity]
lib/Target/PowerPC/PPCTargetMachine.cpp
test/CodeGen/PowerPC/branch_coalesce.ll