[llvm] [InstCombine] Simplify phi using KnownBits of condition (PR #134712)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 13:46:59 PDT 2025


andjo403 wrote:

> However, specially-handling the PHI node in `computeKnownBitsFromContext` is still an ugly way. Can you try `CondContext`?

not only was it ugly it was the cause of the Miscompilation so fixed now

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


More information about the llvm-commits mailing list