[llvm] [InstCombine] Handle trunc i1 pattern in eq-of-parts fold (PR #112704)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 02:47:43 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:
The regression is fixed now.
https://github.com/llvm/llvm-project/pull/112704
More information about the llvm-commits
mailing list