[PATCH] D154006: [InstCombine] Folding `@llvm.ptrmask` with itself
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 14:35:04 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1917
+ if (match(II->getArgOperand(0), m_OneUse(m_Intrinsic<Intrinsic::ptrmask>(
+ m_Value(), m_Value())))) {
+ auto *InnerII = cast<IntrinsicInst>(II->getArgOperand(0));
----------------
Should capture the intrinsic operands via m_Value here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154006/new/
https://reviews.llvm.org/D154006
More information about the llvm-commits
mailing list