[llvm] [IPSCCP] Do not attempt `tryToReplaceWithConstant` if may break invariants (PR #102820)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 09:07:57 PDT 2024
nikic wrote:
It's even more obvious when you consider that the returned constant may just be a constant integer/float rather than a global. That can open up all kinds of optimizations, and is also something where rematerialization is more likely to be profitable.
https://github.com/llvm/llvm-project/pull/102820
More information about the llvm-commits
mailing list