aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/RegAlloc
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-03-10 22:01:59 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-03-10 22:01:59 +0000
commit14068d9f9750705ade5890e34211d0ebb4051802 (patch)
treeb6209479b20cbe019008a2e5d7bec40f4e74a130 /lib/Target/SparcV9/RegAlloc
parent7c627280181b508d0de737b52b831a129bedfb16 (diff)
downloadexternal_llvm-14068d9f9750705ade5890e34211d0ebb4051802.zip
external_llvm-14068d9f9750705ade5890e34211d0ebb4051802.tar.gz
external_llvm-14068d9f9750705ade5890e34211d0ebb4051802.tar.bz2
Only call verifySavedState if SaveRegAllocState is set AND debugging flag is on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc')
-rw-r--r--lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
index 7c30ca9..9682c81 100644
--- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
@@ -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