mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
Only call verifySavedState if SaveRegAllocState is set AND debugging flag is on.
llvm-svn: 12277
This commit is contained in:
parent
61cab65b13
commit
8af4555830
@ -1355,11 +1355,12 @@ 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 ();
|
||||
}
|
||||
}
|
||||
|
||||
// Now update the machine code with register names and add any additional
|
||||
// code inserted by the register allocator to the instruction stream.
|
||||
|
Loading…
Reference in New Issue
Block a user