[llvm] [InstCombine] Optimise the expression `(C & A) | (select (C ^ true), B, false)` with `FoldOrOfAndsWithSelectToLogical` (PR #178438)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 08:05:59 PST 2026


================

----------------
andjo403 wrote:

I do not understand the name is this not a FoldOrOfLogicalAnds.
also easier if this function was left in InstCombineSelect.cpp and only put in a function there. and then used here.

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


More information about the llvm-commits mailing list