1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Unbreak non-debug build.

llvm-svn: 71457
This commit is contained in:
Evan Cheng 2009-05-11 18:40:52 +00:00
parent 7c7809eebd
commit dad97e1bfc

View File

@ -337,7 +337,9 @@ void PEI::clearAllSets() {
void PEI::initShrinkWrappingInfo() {
clearAllSets();
EntryBlock = 0;
#ifndef NDEBUG
HasFastExitPath = false;
#endif
ShrinkWrapThisFunction = ShrinkWrapping;
// DEBUG: enable or disable shrink wrapping for the current function
// via --shrink-wrap-func=<funcname>.
@ -1656,7 +1658,9 @@ void PEI::findFastExitPath() {
MachineBasicBlock* SUCC = *SI;
// Assume positive, disprove existence of fast path.
#ifndef NDEBUG
HasFastExitPath = true;
#endif
// Check the immediate successors.
if (isReturnBlock(SUCC)) {
@ -1672,17 +1676,21 @@ void PEI::findFastExitPath() {
MachineBasicBlock* SBB = *BI;
// Reject paths with branch nodes.
if (SBB->succ_size() > 1) {
#ifndef NDEBUG
HasFastExitPath = false;
#endif
break;
}
exitPath += "->" + getBasicBlockName(SBB);
}
#ifndef NDEBUG
if (HasFastExitPath) {
if (ShrinkWrapDebugging >= BasicInfo)
DOUT << "Fast exit path: " << getBasicBlockName(EntryBlock)
<< "->" << exitPath << "\n";
break;
}
#endif
}
}