[all-commits] [llvm/llvm-project] 6dfdc6: [SROA] Support opaque pointers

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Sep 8 13:26:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dfdc6bfd22a92e06a027527f4eb794009811175
      https://github.com/llvm/llvm-project/commit/6dfdc6bfd22a92e06a027527f4eb794009811175
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
    A llvm/test/Transforms/SROA/basictest-opaque-ptrs.ll

  Log Message:
  -----------
  [SROA] Support opaque pointers

Make the following changes in order to support opaque pointers in SROA:

 * Generate i8 GEPs for opaque pointers.
 * Explicitly enforce that promotable allocas only have stores of
   the alloca type -- previously this was implicitly enforced.
 * Replace a check for pointer element type with load/store type.

Differential Revision: https://reviews.llvm.org/D109259




More information about the All-commits mailing list