Files
archived-llvm/include/llvm/Support
Hans Wennborg 2192111fb2 Merging r324962: (only the first hunk; see PR36375)
------------------------------------------------------------------------
r324962 | kuhar | 2018-02-13 00:37:27 +0100 (Tue, 13 Feb 2018) | 16 lines

[Dominators] Always recalculate postdominators when update yields different roots

Summary:
This patch makes postdominators always recalculate the tree when an update causes to change the tree roots.
As @dmgreen noticed in [[ https://reviews.llvm.org/D41298 | D41298 ]], the previous implementation was not conservative enough and it was possible to end up with a PostDomTree that was different than a freshly computed one.
The patch also compares postdominators with a freshly computed tree at the end of full verification to make sure we don't hit similar issues in the future.

This should (ideally) be also backported to 6.0 before the release, although I don't have any reports of this causing an observable error. It should be safe to do it even if it's late in the release, as the change only makes the current behavior more conservative.

Reviewers: dmgreen, dberlin, davide, brzycki, grosser

Reviewed By: brzycki, grosser

Subscribers: llvm-commits, dmgreen

Differential Revision: https://reviews.llvm.org/D43140
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@325108 91177308-0d34-0410-b5e6-96231b3b80d8
2018-02-14 10:16:43 +00:00
..
2017-08-03 11:36:44 +00:00
2016-04-18 09:17:29 +00:00
2016-01-22 19:58:18 +00:00
2017-07-13 16:11:08 +00:00
2016-04-18 09:17:29 +00:00
2016-04-18 09:17:29 +00:00
2017-08-02 22:31:39 +00:00
2017-03-20 23:33:18 +00:00
2017-04-18 01:04:05 +00:00
2017-10-12 23:56:02 +00:00
2015-08-10 04:22:09 +00:00
2017-10-04 20:27:01 +00:00
2017-10-04 20:27:01 +00:00
2016-04-18 09:17:29 +00:00