llvm.org GIT mirror llvm / 6dabd9d
zap dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112155 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 0 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
524524 RegsForValue(const SmallVector ®s,
525525 EVT regvt, EVT valuevt)
526526 : ValueVTs(1, valuevt), RegVTs(1, regvt), Regs(regs) {}
527
528 RegsForValue(const SmallVector ®s,
529 const SmallVector ®vts,
530 const SmallVector &valuevts)
531 : ValueVTs(valuevts), RegVTs(regvts), Regs(regs) {}
532527
533528 RegsForValue(LLVMContext &Context, const TargetLowering &tli,
534529 unsigned Reg, const Type *Ty) {
361361
362362 // Final step, emit the lowered DAG as machine code.
363363 CodeGenAndEmitDAG();
364 }
365
366 namespace {
367 /// WorkListRemover - This class is a DAGUpdateListener that removes any deleted
368 /// nodes from the worklist.
369 class SDOPsWorkListRemover : public SelectionDAG::DAGUpdateListener {
370 SmallVector &Worklist;
371 SmallPtrSet &InWorklist;
372 public:
373 SDOPsWorkListRemover(SmallVector &wl,
374 SmallPtrSet &inwl)
375 : Worklist(wl), InWorklist(inwl) {}
376
377 void RemoveFromWorklist(SDNode *N) {
378 if (!InWorklist.erase(N)) return;
379
380 SmallVector::iterator I =
381 std::find(Worklist.begin(), Worklist.end(), N);
382 assert(I != Worklist.end() && "Not in worklist");
383
384 *I = Worklist.back();
385 Worklist.pop_back();
386 }
387
388 virtual void NodeDeleted(SDNode *N, SDNode *E) {
389 RemoveFromWorklist(N);
390 }
391
392 virtual void NodeUpdated(SDNode *N) {
393 // Ignore updates.
394 }
395 };
396364 }
397365
398366 void SelectionDAGISel::ComputeLiveOutVRegInfo() {