[PATCH] D79647: AMDGPU: Skip GetUnderlyingObject check in pointsToConstantMemory

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 13:58:06 PDT 2020


rampitec added a comment.

I do not think it is right:

  int *p;
  const int *x = p;

We cannot assume that x points to constant memory, just that we will not modify that memory via that pointer.


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

https://reviews.llvm.org/D79647





More information about the llvm-commits mailing list