mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 17:55:18 +00:00
There is no point in verifying an analysis that is never updated.
llvm-svn: 123743
This commit is contained in:
parent
0cff3f953b
commit
caca9a63e6
@ -175,8 +175,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void verifyAnalysis() const;
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<DominatorTree>();
|
||||
|
@ -120,17 +120,6 @@ INITIALIZE_PASS_DEPENDENCY(DominatorTree)
|
||||
INITIALIZE_PASS_END(DominanceFrontier, "domfrontier",
|
||||
"Dominance Frontier Construction", true, true)
|
||||
|
||||
void DominanceFrontier::verifyAnalysis() const {
|
||||
if (!VerifyDomInfo) return;
|
||||
|
||||
DominatorTree &DT = getAnalysis<DominatorTree>();
|
||||
|
||||
DominanceFrontier OtherDF;
|
||||
const std::vector<BasicBlock*> &DTRoots = DT.getRoots();
|
||||
OtherDF.calculate(DT, DT.getNode(DTRoots[0]));
|
||||
assert(!compare(OtherDF) && "Invalid DominanceFrontier info!");
|
||||
}
|
||||
|
||||
namespace {
|
||||
class DFCalculateWorkObject {
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user