diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
| commit | 145449b1e420787bb99721a429341fa6be3adfb6 (patch) | |
| tree | 1d56ae694a6de602e348dd80165cf881a36600ed /llvm/lib/Analysis/RegionPass.cpp | |
| parent | ecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (diff) | |
Diffstat (limited to 'llvm/lib/Analysis/RegionPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/RegionPass.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/RegionPass.cpp b/llvm/lib/Analysis/RegionPass.cpp index 10c8569096c6..ddef3be8df37 100644 --- a/llvm/lib/Analysis/RegionPass.cpp +++ b/llvm/lib/Analysis/RegionPass.cpp @@ -12,14 +12,16 @@ // Most of this code has been COPIED from LoopPass.cpp // //===----------------------------------------------------------------------===// + #include "llvm/Analysis/RegionPass.h" +#include "llvm/Analysis/RegionInfo.h" #include "llvm/IR/OptBisect.h" #include "llvm/IR/PassTimingInfo.h" #include "llvm/IR/PrintPasses.h" -#include "llvm/IR/StructuralHash.h" #include "llvm/Support/Debug.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" + using namespace llvm; #define DEBUG_TYPE "regionpassmgr" @@ -93,12 +95,12 @@ bool RGPassManager::runOnFunction(Function &F) { TimeRegion PassTimer(getPassTimer(P)); #ifdef EXPENSIVE_CHECKS - uint64_t RefHash = StructuralHash(F); + uint64_t RefHash = P->structuralHash(F); #endif LocalChanged = P->runOnRegion(CurrentRegion, *this); #ifdef EXPENSIVE_CHECKS - if (!LocalChanged && (RefHash != StructuralHash(F))) { + if (!LocalChanged && (RefHash != P->structuralHash(F))) { llvm::errs() << "Pass modifies its input and doesn't report it: " << P->getPassName() << "\n"; llvm_unreachable("Pass modifies its input and doesn't report it"); |
