mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
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
This commit is contained in:
@@ -1177,7 +1177,8 @@ void PhyRegAlloc::saveState () {
|
|||||||
|
|
||||||
|
|
||||||
/// Check the saved state filled in by saveState(), and abort if it looks
|
/// 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 () {
|
void PhyRegAlloc::verifySavedState () {
|
||||||
std::vector<AllocInfo> &state = FnAllocState[Fn];
|
std::vector<AllocInfo> &state = FnAllocState[Fn];
|
||||||
@@ -1233,6 +1234,7 @@ bool PhyRegAlloc::doFinalization (Module &M) {
|
|||||||
std::vector<Constant *> allstate;
|
std::vector<Constant *> allstate;
|
||||||
for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) {
|
for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) {
|
||||||
Function *F = I;
|
Function *F = I;
|
||||||
|
if (F->isExternal ()) continue;
|
||||||
if (FnAllocState.find (F) == FnAllocState.end ()) {
|
if (FnAllocState.find (F) == FnAllocState.end ()) {
|
||||||
allstate.push_back (ConstantPointerNull::get (PT));
|
allstate.push_back (ConstantPointerNull::get (PT));
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1177,7 +1177,8 @@ void PhyRegAlloc::saveState () {
|
|||||||
|
|
||||||
|
|
||||||
/// Check the saved state filled in by saveState(), and abort if it looks
|
/// 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 () {
|
void PhyRegAlloc::verifySavedState () {
|
||||||
std::vector<AllocInfo> &state = FnAllocState[Fn];
|
std::vector<AllocInfo> &state = FnAllocState[Fn];
|
||||||
@@ -1233,6 +1234,7 @@ bool PhyRegAlloc::doFinalization (Module &M) {
|
|||||||
std::vector<Constant *> allstate;
|
std::vector<Constant *> allstate;
|
||||||
for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) {
|
for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I) {
|
||||||
Function *F = I;
|
Function *F = I;
|
||||||
|
if (F->isExternal ()) continue;
|
||||||
if (FnAllocState.find (F) == FnAllocState.end ()) {
|
if (FnAllocState.find (F) == FnAllocState.end ()) {
|
||||||
allstate.push_back (ConstantPointerNull::get (PT));
|
allstate.push_back (ConstantPointerNull::get (PT));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user