mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
zap dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d2d099e27
commit
6dabd9dba0
@ -526,11 +526,6 @@ namespace {
|
|||||||
EVT regvt, EVT valuevt)
|
EVT regvt, EVT valuevt)
|
||||||
: ValueVTs(1, valuevt), RegVTs(1, regvt), Regs(regs) {}
|
: ValueVTs(1, valuevt), RegVTs(1, regvt), Regs(regs) {}
|
||||||
|
|
||||||
RegsForValue(const SmallVector<unsigned, 4> ®s,
|
|
||||||
const SmallVector<EVT, 4> ®vts,
|
|
||||||
const SmallVector<EVT, 4> &valuevts)
|
|
||||||
: ValueVTs(valuevts), RegVTs(regvts), Regs(regs) {}
|
|
||||||
|
|
||||||
RegsForValue(LLVMContext &Context, const TargetLowering &tli,
|
RegsForValue(LLVMContext &Context, const TargetLowering &tli,
|
||||||
unsigned Reg, const Type *Ty) {
|
unsigned Reg, const Type *Ty) {
|
||||||
ComputeValueVTs(tli, Ty, ValueVTs);
|
ComputeValueVTs(tli, Ty, ValueVTs);
|
||||||
|
@ -364,38 +364,6 @@ SelectionDAGISel::SelectBasicBlock(BasicBlock::const_iterator Begin,
|
|||||||
CodeGenAndEmitDAG();
|
CodeGenAndEmitDAG();
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
/// WorkListRemover - This class is a DAGUpdateListener that removes any deleted
|
|
||||||
/// nodes from the worklist.
|
|
||||||
class SDOPsWorkListRemover : public SelectionDAG::DAGUpdateListener {
|
|
||||||
SmallVector<SDNode*, 128> &Worklist;
|
|
||||||
SmallPtrSet<SDNode*, 128> &InWorklist;
|
|
||||||
public:
|
|
||||||
SDOPsWorkListRemover(SmallVector<SDNode*, 128> &wl,
|
|
||||||
SmallPtrSet<SDNode*, 128> &inwl)
|
|
||||||
: Worklist(wl), InWorklist(inwl) {}
|
|
||||||
|
|
||||||
void RemoveFromWorklist(SDNode *N) {
|
|
||||||
if (!InWorklist.erase(N)) return;
|
|
||||||
|
|
||||||
SmallVector<SDNode*, 128>::iterator I =
|
|
||||||
std::find(Worklist.begin(), Worklist.end(), N);
|
|
||||||
assert(I != Worklist.end() && "Not in worklist");
|
|
||||||
|
|
||||||
*I = Worklist.back();
|
|
||||||
Worklist.pop_back();
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void NodeDeleted(SDNode *N, SDNode *E) {
|
|
||||||
RemoveFromWorklist(N);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void NodeUpdated(SDNode *N) {
|
|
||||||
// Ignore updates.
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
void SelectionDAGISel::ComputeLiveOutVRegInfo() {
|
void SelectionDAGISel::ComputeLiveOutVRegInfo() {
|
||||||
SmallPtrSet<SDNode*, 128> VisitedNodes;
|
SmallPtrSet<SDNode*, 128> VisitedNodes;
|
||||||
SmallVector<SDNode*, 128> Worklist;
|
SmallVector<SDNode*, 128> Worklist;
|
||||||
|
Loading…
Reference in New Issue
Block a user