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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits