[PATCH] D136015: [InstCombine] Fold series of instructions into mull
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 08:39:34 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp:1296
+ !match(YLo, m_And(m_Value(Y), m_SpecificInt(HalfMask))))
+ return nullptr;
+
----------------
Allen wrote:
> RKSimon wrote:
> > What about if the AND has been removed by SimplifyDemandedBits? Maybe also test for KnownBits known leading zeros?
> Thanks for your suggestion, I'll record this issue, and I'll try out your suggestions later with a separate patch ?
A TODO comment is fine for now - cheers
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136015/new/
https://reviews.llvm.org/D136015
More information about the llvm-commits
mailing list