[PATCH] D81089: Mark InstCombine as not preserving CFG
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 11 01:50:44 PDT 2020
nikic requested changes to this revision.
nikic added a comment.
This revision now requires changes to proceed.
If we define that changing successor order constitutes a CFG change, then these optimizations need to be dropped from InstCombine, and moved into SimplifyCFG.
As said before, InstCombine is supposed to be CFG-preserving -- if it isn't because the definition of what "CFG-preserving" means was unclear, then we need to fix InstCombine to be in line with we new definition.
As the pipeline diffs show, not preserving CFG has a very real cost (five new domtree calculations at least). We should try to avoid that :)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81089/new/
https://reviews.llvm.org/D81089
More information about the llvm-commits
mailing list