[PATCH] D154791: [InstCombine] Transform bitwise (A << X, zext(icmp)) -> zext (bitwise(A < 0, icmp)) fold.
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 9 11:58:38 PDT 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1723
+ bool IsMatched =
+ match(Op0, m_LShr(m_Value(A),
+ m_SpecificInt(Op0->getType()->getScalarSizeInBits() - 1))) &&
----------------
`lshr`? The comments are all `shl`. Can you clarify one of them (looks like comments/summary is wrong).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154791/new/
https://reviews.llvm.org/D154791
More information about the llvm-commits
mailing list