[PATCH] D38331: [Dominators] Add DFS number verification
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 13:17:37 PDT 2017
kuhar created this revision.
Herald added a reviewer: bollu.
This patch teaches the DominatorTree verifier to check DFS In/Out numbers which are used to answer dominance queries.
DFS number verification is done in O(nlogn), so it shouldn't add much overhead on top of the O(n^3) sibling property verification.
This check should detect errors like the one spotted in PR34466 and related bug reports.
I see 2 new test failures when running check-all after this change:
Failing Tests (2):
Polly :: Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll
Polly :: Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll
which seem to happen just after `Create LLVM-IR from SCoPs` -- I don't have much time now, so it would be awesome if the polly folks could help me with fixing that before sending this patch :).
https://reviews.llvm.org/D38331
Files:
include/llvm/Support/GenericDomTree.h
include/llvm/Support/GenericDomTreeConstruction.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38331.116870.patch
Type: text/x-patch
Size: 5963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170927/3516f0a7/attachment.bin>
More information about the llvm-commits
mailing list