[llvm] [InstCombine] Handle trunc i1 pattern in eq-of-parts fold (PR #112704)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 07:22:06 PST 2024


================
@@ -3538,6 +3546,9 @@ Value *InstCombinerImpl::foldBooleanAndOr(Value *LHS, Value *RHS,
       if (Value *Res = foldLogicOfFCmps(LHSCmp, RHSCmp, IsAnd, IsLogical))
         return Res;
 
+  if (Value *Res = foldEqOfParts(LHS, RHS, IsAnd))
----------------
nikic wrote:

This will be fixed by https://github.com/llvm/llvm-project/pull/116065.

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


More information about the llvm-commits mailing list