mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-01 17:35:38 +00:00
Add verifyAnalysis for LCSSA.
Summary: LCSSAWrapperPass currently doesn't override verifyAnalysis method, so pass manager doesn't verify LCSSA. This patch adds the method so that we start verifying LCSSA between loop passes. Reviewers: chandlerc, sanjoy, hfinkel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22888 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa6ca74bfc
commit
79e7020865
@ -315,6 +315,11 @@ struct LCSSAWrapperPass : public FunctionPass {
|
||||
ScalarEvolution *SE;
|
||||
|
||||
bool runOnFunction(Function &F) override;
|
||||
void verifyAnalysis() const override {
|
||||
assert(
|
||||
all_of(*LI, [&](Loop *L) { return L->isRecursivelyLCSSAForm(*DT); }) &&
|
||||
"LCSSA form is broken!");
|
||||
};
|
||||
|
||||
/// This transformation requires natural loop information & requires that
|
||||
/// loop preheaders be inserted into the CFG. It maintains both of these,
|
||||
|
Loading…
x
Reference in New Issue
Block a user