mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Hide two unused debugging methods, NFCI.
GCC correctly moans that PlainCFGBuilder::isExternalDef(llvm::Value*) and StackSafetyDataFlowAnalysis::verifyFixedPoint() are defined but not used in Release builds. Hide them behind 'ifndef NDEBUG'. llvm-svn: 355205
This commit is contained in:
parent
3f92e947c8
commit
065a990766
@ -415,7 +415,9 @@ class StackSafetyDataFlowAnalysis {
|
|||||||
updateOneNode(F.first, F.second);
|
updateOneNode(F.first, F.second);
|
||||||
}
|
}
|
||||||
void runDataFlow();
|
void runDataFlow();
|
||||||
|
#ifndef NDEBUG
|
||||||
void verifyFixedPoint();
|
void verifyFixedPoint();
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StackSafetyDataFlowAnalysis(
|
StackSafetyDataFlowAnalysis(
|
||||||
@ -526,11 +528,13 @@ void StackSafetyDataFlowAnalysis::runDataFlow() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
void StackSafetyDataFlowAnalysis::verifyFixedPoint() {
|
void StackSafetyDataFlowAnalysis::verifyFixedPoint() {
|
||||||
WorkList.clear();
|
WorkList.clear();
|
||||||
updateAllNodes();
|
updateAllNodes();
|
||||||
assert(WorkList.empty());
|
assert(WorkList.empty());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
StackSafetyGlobalInfo StackSafetyDataFlowAnalysis::run() {
|
StackSafetyGlobalInfo StackSafetyDataFlowAnalysis::run() {
|
||||||
runDataFlow();
|
runDataFlow();
|
||||||
|
@ -63,7 +63,9 @@ private:
|
|||||||
void setVPBBPredsFromBB(VPBasicBlock *VPBB, BasicBlock *BB);
|
void setVPBBPredsFromBB(VPBasicBlock *VPBB, BasicBlock *BB);
|
||||||
void fixPhiNodes();
|
void fixPhiNodes();
|
||||||
VPBasicBlock *getOrCreateVPBB(BasicBlock *BB);
|
VPBasicBlock *getOrCreateVPBB(BasicBlock *BB);
|
||||||
|
#ifndef NDEBUG
|
||||||
bool isExternalDef(Value *Val);
|
bool isExternalDef(Value *Val);
|
||||||
|
#endif
|
||||||
VPValue *getOrCreateVPOperand(Value *IRVal);
|
VPValue *getOrCreateVPOperand(Value *IRVal);
|
||||||
void createVPInstructionsForVPBB(VPBasicBlock *VPBB, BasicBlock *BB);
|
void createVPInstructionsForVPBB(VPBasicBlock *VPBB, BasicBlock *BB);
|
||||||
|
|
||||||
@ -118,6 +120,7 @@ VPBasicBlock *PlainCFGBuilder::getOrCreateVPBB(BasicBlock *BB) {
|
|||||||
return VPBB;
|
return VPBB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
// Return true if \p Val is considered an external definition. An external
|
// Return true if \p Val is considered an external definition. An external
|
||||||
// definition is either:
|
// definition is either:
|
||||||
// 1. A Value that is not an Instruction. This will be refined in the future.
|
// 1. A Value that is not an Instruction. This will be refined in the future.
|
||||||
@ -153,6 +156,7 @@ bool PlainCFGBuilder::isExternalDef(Value *Val) {
|
|||||||
// Check whether Instruction definition is in loop body.
|
// Check whether Instruction definition is in loop body.
|
||||||
return !TheLoop->contains(Inst);
|
return !TheLoop->contains(Inst);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Create a new VPValue or retrieve an existing one for the Instruction's
|
// Create a new VPValue or retrieve an existing one for the Instruction's
|
||||||
// operand \p IRVal. This function must only be used to create/retrieve VPValues
|
// operand \p IRVal. This function must only be used to create/retrieve VPValues
|
||||||
|
Loading…
x
Reference in New Issue
Block a user