[PATCH] D85524: [Loads] Add canReplacePointersIfEqual helper.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 12:18:57 PDT 2020


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/Loads.cpp:524
+    return C->isNullValue() ||
+           isDereferenceablePointer(B, Ty->getPointerElementType(), DL, CtxI);
+  }
----------------
efriedma wrote:
> This check is full of holes... but I guess it's a good thing if we can start marking the places in transforms where this matters without worrying too much about the initial performance impact.
This check looks fundamentally incompatible with opaque pointers.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85524



More information about the llvm-commits mailing list