[llvm] r277285 - [HexagonConstPropagation] Remove dead code.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 30 15:07:21 PDT 2016
Author: davide
Date: Sat Jul 30 17:07:21 2016
New Revision: 277285
URL: http://llvm.org/viewvc/llvm-project?rev=277285&view=rev
Log:
[HexagonConstPropagation] Remove dead code.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp?rev=277285&r1=277284&r2=277285&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp Sat Jul 30 17:07:21 2016
@@ -218,8 +218,6 @@ namespace {
void visitNonBranch(const MachineInstr &MI);
void visitBranchesFrom(const MachineInstr &BrI);
void visitUsesOf(unsigned R);
- bool isExecutable(const MachineBasicBlock *MB) const;
- void pushLayoutSuccessor(const MachineBasicBlock *MB);
bool computeBlockSuccessors(const MachineBasicBlock *MB,
SetVector<const MachineBasicBlock*> &Targets);
void removeCFGEdge(MachineBasicBlock *From, MachineBasicBlock *To);
@@ -771,26 +769,6 @@ void MachineConstPropagator::visitUsesOf
}
}
-
-bool MachineConstPropagator::isExecutable(const MachineBasicBlock *MB) const {
- unsigned MBN = MB->getNumber();
- for (const MachineBasicBlock *PB : MB->predecessors()) {
- unsigned PBN = PB->getNumber();
- if (EdgeExec.count(CFGEdge(PBN, MBN)))
- return true;
- }
- return false;
-}
-
-
-void MachineConstPropagator::pushLayoutSuccessor(const MachineBasicBlock *MB) {
- MachineFunction::const_iterator BI = MB->getIterator();
- unsigned MBN = MB->getNumber();
- unsigned SBN = std::next(BI)->getNumber();
- FlowQ.push(CFGEdge(MBN, SBN));
-}
-
-
bool MachineConstPropagator::computeBlockSuccessors(const MachineBasicBlock *MB,
SetVector<const MachineBasicBlock*> &Targets) {
MachineBasicBlock::const_iterator FirstBr = MB->end();
More information about the llvm-commits
mailing list