[PATCH] D152358: [CGP] Remove operand of llvm.assume more aggressively.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 00:21:26 PDT 2023
nikic added a comment.
Our longer term plan was to stop removing assumes in CGP, so they remain available during codegen, in particular for AA purposes. Instead, we would drop assumes more aggressively earlier if they keep control flow alive.
It seems pretty likely that assumes that keep alive otherwise dead IVs are also blocking optimizations in earlier parts of the pipeline, and we would be better of dropping such assumes earlier. I'm not entirely sure what the right heuristic for that would be, but "ephemeral values of the assume include a phi node" is probably a pretty good one.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152358/new/
https://reviews.llvm.org/D152358
More information about the llvm-commits
mailing list