[PATCH] D148420: [InstSimplify] Enhance select icmp and simplification
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 16:23:47 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4411
+ const APInt *C;
+ if (Pred != ICmpInst::ICMP_EQ ||
+ !match(AndVal, m_And(m_Specific(X), m_APInt(C))))
----------------
Can we also handle `select (icmp ne (and X, C), 0, (shl X, K), 0)`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148420/new/
https://reviews.llvm.org/D148420
More information about the llvm-commits
mailing list