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

Yingwei Zheng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 4 22:39:28 PST 2025


https://github.com/dtcxzyw commented:

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

However, we should wait for the following things before working on more simplifications with `freeze poison`:
1. Remove `freeze poison -> null` canonicalization in InstCombine
2. Replace existing undef handling logic with `freeze poison`

See also https://github.com/llvm/llvm-project/pull/119884#issuecomment-2548042978


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


More information about the llvm-branch-commits mailing list