[llvm] [SCCP] Support structure in freeze (PR #226537)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 22:05:35 PDT 2026
aokblast wrote:
> From the llvm-opt-benchmark diff, it looks like we currently fail to fold away a freeze of a constant: https://llvm.godbolt.org/z/r7nhThzzx This handles it as a side-effect, but this is really something that InstCombine should do. It looks like isGuaranteedNotToBeUndefOrPoison() has no support for constant structs.
Let's see if https://github.com/llvm/llvm-project/pull/226748 handles all of the cases in InstCombine so that we don't need this patch after.
https://github.com/llvm/llvm-project/pull/226537
More information about the llvm-commits
mailing list