diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 14:18:01 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-12 14:18:01 +0000 |
commit | af00d485a409983639881b4d34f0cd89e1eb4d38 (patch) | |
tree | add356970280a6bc2a82ca2faf1e19900aa2f652 /lib/CodeGen/InstrSched/SchedPriorities.cpp | |
parent | 5567e942c03056cc566225e93a93f6516d73f305 (diff) |
Major improvement to how nodes are built for a BB.
LLVM instruction is no longer recorded in each node, but BB is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/InstrSched/SchedPriorities.cpp')
-rw-r--r-- | lib/CodeGen/InstrSched/SchedPriorities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index 7840a25098..31d9f6c592 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/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); |