diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-08-31 19:26:19 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-08-31 19:26:19 +0000 |
commit | e0b2d97b520b381f4002f1028f580defe1a31d9d (patch) | |
tree | ed81bc1bd60b8f571b53dd7c802949b624410b45 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp | |
parent | 8d84605f25d91c63c2c9e2c8f42575da520f17a3 (diff) | |
download | llvm-e0b2d97b520b381f4002f1028f580defe1a31d9d.zip llvm-e0b2d97b520b381f4002f1028f580defe1a31d9d.tar.gz llvm-e0b2d97b520b381f4002f1028f580defe1a31d9d.tar.bz2 |
[LoopInfo] Add verification by recomputation.
Summary:
Current implementation of LI verifier isn't ideal and fails to detect
some cases when LI is incorrect. For instance, it checks that all
recorded loops are in a correct form, but it has no way to check if
there are no more other (unrecorded in LI) loops in the function. This
patch adds a way to detect such bugs.
Reviewers: chandlerc, sanjoy, hfinkel
Subscribers: llvm-commits, silvas, mzolotukhin
Differential Revision: https://reviews.llvm.org/D23437
llvm-svn: 280280
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDistribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index 74cfdbf..ad973cf 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -742,7 +742,7 @@ public: DEBUG(Partitions.printBlocks()); if (LDistVerify) { - LI->verify(); + LI->verify(*DT); DT->verifyDomTree(); } |