diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-10-12 19:50:57 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-10-12 19:50:57 +0000 |
commit | 7479130c261876fe013ef2f2d9bbd90e7068ba54 (patch) | |
tree | 1202414f237f9f8b8e5ae6434098a705c5b5cd7f /lib/CodeGen/BranchFolding.h | |
parent | 7227e0000327861ed9b54ea03090bd25d96524f8 (diff) |
Do not remove implicit defs in BranchFolder
Branch folder removes implicit defs if they are the only non-branching
instructions in a block, and the branches do not use the defined registers.
The problem is that in some cases these implicit defs are required for
the liveness information to be correct.
Differential Revision: https://reviews.llvm.org/D25478
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.h')
-rw-r--r-- | lib/CodeGen/BranchFolding.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h index bce8d62b14c..096b44a043a 100644 --- a/lib/CodeGen/BranchFolding.h +++ b/lib/CodeGen/BranchFolding.h @@ -156,7 +156,6 @@ namespace llvm { bool OptimizeBranches(MachineFunction &MF); bool OptimizeBlock(MachineBasicBlock *MBB); void RemoveDeadBlock(MachineBasicBlock *MBB); - bool OptimizeImpDefsBlock(MachineBasicBlock *MBB); bool HoistCommonCode(MachineFunction &MF); bool HoistCommonCodeInSuccs(MachineBasicBlock *MBB); |