[PATCH] D48279: [PatternMatch] Add m_Store pattern match helper

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 18 06:56:35 PDT 2018


dmgreen added inline comments.


================
Comment at: include/llvm/IR/PatternMatch.h:1206
+    if (auto *LI = dyn_cast<StoreInst>(V))
+      return Op.match(LI->getPointerOperand());
+    return false;
----------------
Are you sure you want the pointer operand, and not the value being stored? (Or maybe both?)


https://reviews.llvm.org/D48279





More information about the llvm-commits mailing list