[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 09:54:22 PST 2026


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

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

but I see now that eg foldBooleanAndOr have the body in InstCombineAndOrXor.cpp and is used from InstCombineSelect.cpp so I do not know if there is any preference in what file to have the function

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


More information about the llvm-commits mailing list