Page MenuHomePhabricator

[GlobalOpt] Pass DTU to removeUnreachableBlocks instead of recomputing.
ClosedPublic

Authored by fhahn on Oct 1 2019, 2:11 PM.

Details

Summary

removeUnreachableBlocks knows how to preserve the DomTree, so make use
of it instead of re-computing the DT.

Diff Detail

Repository
rL LLVM

Event Timeline

fhahn created this revision.Oct 1 2019, 2:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2019, 2:11 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
davide accepted this revision.Oct 1 2019, 2:17 PM

I think I wrote some of this code and it predates Kuba's incremental dominator updater. I'm fine, but I'll wait if he has opinions cc: @kuhar

This revision is now accepted and ready to land.Oct 1 2019, 2:17 PM
kuhar accepted this revision.Oct 1 2019, 2:18 PM

Looks good to me.

This revision was automatically updated to reflect the committed changes.