[PATCH] D68298: [GlobalOpt] Pass DTU to removeUnreachableBlocks instead of recomputing.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 05:51:26 PST 2020
nikic added a comment.
I suspect that this change caused a major compile-time performance regression in GlobalOpt. Doesn't this essentially break the laziness of `LookupDomTree()` and force DT construction even if it will not be needed?
As the `removeUnreachableBlocks()` call is (presumably) expected to never actually do something outside of manually constructed IR examples, this seems like a bad tradeoff. Ideally we would only fetch the DT here if it exists, but threading that through is likely not worthwhile.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68298/new/
https://reviews.llvm.org/D68298
More information about the llvm-commits
mailing list