mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Unbreak non-debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec51b58b1c
commit
6afd198fd8
@ -337,7 +337,9 @@ void PEI::clearAllSets() {
|
|||||||
void PEI::initShrinkWrappingInfo() {
|
void PEI::initShrinkWrappingInfo() {
|
||||||
clearAllSets();
|
clearAllSets();
|
||||||
EntryBlock = 0;
|
EntryBlock = 0;
|
||||||
|
#ifndef NDEBUG
|
||||||
HasFastExitPath = false;
|
HasFastExitPath = false;
|
||||||
|
#endif
|
||||||
ShrinkWrapThisFunction = ShrinkWrapping;
|
ShrinkWrapThisFunction = ShrinkWrapping;
|
||||||
// DEBUG: enable or disable shrink wrapping for the current function
|
// DEBUG: enable or disable shrink wrapping for the current function
|
||||||
// via --shrink-wrap-func=<funcname>.
|
// via --shrink-wrap-func=<funcname>.
|
||||||
@ -1656,7 +1658,9 @@ void PEI::findFastExitPath() {
|
|||||||
MachineBasicBlock* SUCC = *SI;
|
MachineBasicBlock* SUCC = *SI;
|
||||||
|
|
||||||
// Assume positive, disprove existence of fast path.
|
// Assume positive, disprove existence of fast path.
|
||||||
|
#ifndef NDEBUG
|
||||||
HasFastExitPath = true;
|
HasFastExitPath = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Check the immediate successors.
|
// Check the immediate successors.
|
||||||
if (isReturnBlock(SUCC)) {
|
if (isReturnBlock(SUCC)) {
|
||||||
@ -1672,17 +1676,21 @@ void PEI::findFastExitPath() {
|
|||||||
MachineBasicBlock* SBB = *BI;
|
MachineBasicBlock* SBB = *BI;
|
||||||
// Reject paths with branch nodes.
|
// Reject paths with branch nodes.
|
||||||
if (SBB->succ_size() > 1) {
|
if (SBB->succ_size() > 1) {
|
||||||
|
#ifndef NDEBUG
|
||||||
HasFastExitPath = false;
|
HasFastExitPath = false;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
exitPath += "->" + getBasicBlockName(SBB);
|
exitPath += "->" + getBasicBlockName(SBB);
|
||||||
}
|
}
|
||||||
|
#ifndef NDEBUG
|
||||||
if (HasFastExitPath) {
|
if (HasFastExitPath) {
|
||||||
if (ShrinkWrapDebugging >= BasicInfo)
|
if (ShrinkWrapDebugging >= BasicInfo)
|
||||||
DOUT << "Fast exit path: " << getBasicBlockName(EntryBlock)
|
DOUT << "Fast exit path: " << getBasicBlockName(EntryBlock)
|
||||||
<< "->" << exitPath << "\n";
|
<< "->" << exitPath << "\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user