This is an archive of the discontinued LLVM Phabricator instance.

Revert "[ObjC][ARC] Check the basic block size before calling DominatorTree::dominate"
ClosedPublic

Authored by rnk on Mar 12 2020, 9:41 AM.

Details

Summary

This reverts commit 5c3117b0a98dd11717eaffd7fb583985d39544b2

This should not be necessary after
7593a480dbce4e26f7dda4aa8f15bffd03acbfdb, although I do not have a test
case to demonstrate that the problem has gone away.

I happened to notice this code because the FIXME talks about
OrderedBasicBlock.

Diff Detail

Event Timeline

rnk created this revision.Mar 12 2020, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2020, 9:41 AM
rnk updated this revision to Diff 249975.Mar 12 2020, 10:22 AM
  • pacify clang-format

This SGTM. Ideally we'd confirm the compile-time explosion is fixed before landing this though.

+fhahn, who did some of the initial investigation.

fhahn accepted this revision.Mar 13 2020, 10:09 AM

LGTM thanks. I verified that we spend roughly the same amount of time in the middle-end with and without this patch for the motivating case for this patch (around 30 secs instead of hours before the original patch)>

This revision is now accepted and ready to land.Mar 13 2020, 10:09 AM
dexonsmith accepted this revision.Mar 13 2020, 11:32 AM
ahatanak accepted this revision.Mar 13 2020, 11:54 AM
This revision was automatically updated to reflect the committed changes.
llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp