[PATCH] D139408: [InstCombine] Fold logic-and/logic-or by distributive laws
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 05:57:11 PST 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:2695
+ (CondVal->hasOneUse() || FalseVal->hasOneUse())) {
+ bool CondLogicAnd = isa<SelectInst>(CondVal);
+ bool FalseLogicAnd = isa<SelectInst>(FalseVal);
----------------
Sorry if I've missed something (looooong day) - but how can this match as a SelectInst if its already matched as m_LogicalAnd above?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139408/new/
https://reviews.llvm.org/D139408
More information about the llvm-commits
mailing list