[PATCH] D152706: [AMDGPU] Use SSAUpdater in PromoteAlloca

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 05:39:55 PDT 2023


Pierre-vh marked an inline comment as done.
Pierre-vh added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp:391
+      // (e.g. load <8 x i8> as ptr), we first need to cast to int.
+      if (Inst->getType()->isPointerTy()) {
+        CurVal =
----------------
arsenm wrote:
> Doesn't consider vector of pointers
What case do you have in mind? This code path is just for loading the full vector. I initially had a test for a `<1 x ptr>` vector but we don't vectorize under 2 elements so it never worked.



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152706



More information about the llvm-commits mailing list