[PATCH] D109527: [Delinearization] Delinearization of Array-of-Struct. Proof-of-Concept.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 02:08:02 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/Delinearization.cpp:498
+  } else {
+    AssumedEltType = PtrVal->getType()->getPointerElementType();
+  }
----------------
This isn't compatible with opaque pointers. The access size needs to be determine exclusively based on load/store element type (using GEP type is inappropriate for this as well, even if it won't outright crash).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109527



More information about the llvm-commits mailing list