[PATCH] D63243: [WIP] Adjust the users of dereferenceable wrt. dereferenceable_globally

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 02:19:59 PDT 2019


courbet added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/MergeICmps.cpp:165
   const auto &DL = GEP->getModule()->getDataLayout();
-  if (!isDereferenceablePointer(GEP, DL)) {
+  if (!isDereferenceablePointer(GEP, DL, const_cast<LoadInst *>(LoadI))) {
     LLVM_DEBUG(dbgs() << "not dereferenceable\n");
----------------
I don't see where in the patch (or the rest of the stack of changes) the signature of `isDereferenceablePointer` is changed to non-const Instruction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63243/new/

https://reviews.llvm.org/D63243





More information about the llvm-commits mailing list