diff options
author | Davide Italiano <davide@freebsd.org> | 2016-07-19 21:10:49 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-07-19 21:10:49 +0000 |
commit | 1576e385983a343da70e57bf5340854714d9e7c3 (patch) | |
tree | 9b50fd60746dc4f4dd05ea587cbad97ceaa23fc8 | |
parent | 8b85321bae0303c456e256cbb910ebe753398e60 (diff) | |
download | bcm5719-llvm-1576e385983a343da70e57bf5340854714d9e7c3.tar.gz bcm5719-llvm-1576e385983a343da70e57bf5340854714d9e7c3.zip |
[AMDGPU] Remove dead code.
LGTM'd by Matt Arsenault.
llvm-svn: 276029
-rw-r--r-- | llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp index 91c66bb1558..d273b5b90ad 100644 --- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp +++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp @@ -93,7 +93,6 @@ private: MachineBasicBlock::iterator I) const; std::pair<MachineBasicBlock *, MachineBasicBlock *> - splitBlock(MachineBasicBlock &MBB, MachineBasicBlock::iterator I); public: static char ID; @@ -405,30 +404,6 @@ MachineBasicBlock *SILowerControlFlow::insertSkipBlock( return SkipBB; } -std::pair<MachineBasicBlock *, MachineBasicBlock *> -SILowerControlFlow::splitBlock(MachineBasicBlock &MBB, - MachineBasicBlock::iterator I) { - MachineFunction *MF = MBB.getParent(); - - // To insert the loop we need to split the block. Move everything after this - // point to a new block, and insert a new empty block between the two. - MachineBasicBlock *LoopBB = MF->CreateMachineBasicBlock(); - MachineBasicBlock *RemainderBB = MF->CreateMachineBasicBlock(); - MachineFunction::iterator MBBI(MBB); - ++MBBI; - - MF->insert(MBBI, LoopBB); - MF->insert(MBBI, RemainderBB); - - // Move the rest of the block into a new block. - RemainderBB->transferSuccessors(&MBB); - RemainderBB->splice(RemainderBB->begin(), &MBB, I, MBB.end()); - - MBB.addSuccessor(LoopBB); - - return std::make_pair(LoopBB, RemainderBB); -} - bool SILowerControlFlow::runOnMachineFunction(MachineFunction &MF) { const SISubtarget &ST = MF.getSubtarget<SISubtarget>(); TII = ST.getInstrInfo(); |