From dff0a891c1108aaf335680992f51eafbae65e6fa Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 12 Nov 2001 14:18:01 +0000 Subject: Major improvement to how nodes are built for a BB. LLVM instruction is no longer recorded in each node, but BB is. llvm-svn: 1262 --- llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp') diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp index 7840a250984..31d9f6c5926 100644 --- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -264,7 +264,7 @@ SchedPriorities::instructionHasLastUse(MethodLiveVarInfo& methodLiveVarInfo, // else check if instruction is a last use and save it in the hash_map bool hasLastUse = false; - const BasicBlock* bb = graphNode->getInstr()->getParent(); + const BasicBlock* bb = graphNode->getBB(); const LiveVarSet* liveVars = methodLiveVarInfo.getLiveVarSetBeforeMInst(minstr, bb); -- cgit v1.2.3