[llvm-branch-commits] [llvm] [InstCombine] Enable select freeze poison folding when storing value (PR #129776)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 5 08:56:54 PST 2025


nikic wrote:

> We can do this fold in InstSimplify: https://alive2.llvm.org/ce/z/Dm53TP

The transform is only valid if the freeze(poison) is one-use. And I don't think that InstSimplify should be doing any use-based checks. So I think InstCombine is the right place for it.

https://github.com/llvm/llvm-project/pull/129776


More information about the llvm-branch-commits mailing list