diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-04 22:42:41 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-04 22:42:41 +0000 |
commit | 55766e139a2eae8d44e703c1933d1084c1d5a586 (patch) | |
tree | 24d50dfe855f4e591abb145c1e5fbe53e7cd0b0e | |
parent | c2630f73141076fb3a771d7106cc10fd009edfb7 (diff) | |
download | external_llvm-55766e139a2eae8d44e703c1933d1084c1d5a586.zip external_llvm-55766e139a2eae8d44e703c1933d1084c1d5a586.tar.gz external_llvm-55766e139a2eae8d44e703c1933d1084c1d5a586.tar.bz2 |
Update verifySavedState()'s comment, so that it reflects its current
status. In doFinalization(), skip over external functions, just like
Anand's mapping info does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 4 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 65d1b70..4215023 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -1177,7 +1177,8 @@ void PhyRegAlloc::saveState () { /// Check the saved state filled in by saveState(), and abort if it looks -/// wrong. Only used when debugging. +/// wrong. Only used when debugging. FIXME: Currently it just prints out +/// the state, which isn't quite as useful. /// void PhyRegAlloc::verifySavedState () { std::vector<AllocInfo> &state = FnAllocState[Fn]; @@ -1233,6 +1234,7 @@ bool PhyRegAlloc::doFinalization (Module &M) { std::vector<Constant *> allstate; for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) { Function *F = I; + if (F->isExternal ()) continue; if (FnAllocState.find (F) == FnAllocState.end ()) { allstate.push_back (ConstantPointerNull::get (PT)); } else { diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 65d1b70..4215023 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -1177,7 +1177,8 @@ void PhyRegAlloc::saveState () { /// Check the saved state filled in by saveState(), and abort if it looks -/// wrong. Only used when debugging. +/// wrong. Only used when debugging. FIXME: Currently it just prints out +/// the state, which isn't quite as useful. /// void PhyRegAlloc::verifySavedState () { std::vector<AllocInfo> &state = FnAllocState[Fn]; @@ -1233,6 +1234,7 @@ bool PhyRegAlloc::doFinalization (Module &M) { std::vector<Constant *> allstate; for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) { Function *F = I; + if (F->isExternal ()) continue; if (FnAllocState.find (F) == FnAllocState.end ()) { allstate.push_back (ConstantPointerNull::get (PT)); } else { |