Only call verifySavedState if SaveRegAllocState is set AND debugging flag is on.

llvm-svn: 12277
This commit is contained in:
Brian Gaeke 2004-03-10 22:01:59 +00:00
parent 61cab65b13
commit 8af4555830

View File

@ -1355,10 +1355,11 @@ bool PhyRegAlloc::runOnFunction (Function &F) {
colorIncomingArgs();
// Save register allocation state for this function in a Constant.
if (SaveRegAllocState)
if (SaveRegAllocState) {
saveState();
if (DEBUG_RA) { // Check our work.
verifySavedState ();
if (DEBUG_RA) { // Check our work.
verifySavedState ();
}
}
// Now update the machine code with register names and add any additional