[llvm] [InstCombine] Check for undef first before freeze (PR #96769)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 07:16:14 PDT 2024


https://github.com/nikic requested changes to this pull request.

If it's known not to be undef/poison, the freeze will be folded away, no need to check for it.

What *would* make sense is if you can check isGuaranteedNotToBeUndef (without the OrPoison). From a quick glance, you likely can, as these are multi-use freezes.

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


More information about the llvm-commits mailing list