[all-commits] [llvm/llvm-project] ea0e2c: [SROA] Allow SROA on pointers with invariant group...

aeubanks via All-commits all-commits at lists.llvm.org
Mon Apr 5 20:00:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea0e2ca1acb20781515c23850ec1ee7476909b2f
      https://github.com/llvm/llvm-project/commit/ea0e2ca1acb20781515c23850ec1ee7476909b2f
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-04-05 (Mon, 05 Apr 2021)

  Changed paths:
    M llvm/include/llvm/IR/Instruction.h
    M llvm/lib/IR/Instruction.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    A llvm/test/Transforms/SROA/invariant-group.ll

  Log Message:
  -----------
  [SROA] Allow SROA on pointers with invariant group intrinsic uses

When we are able to SROA an alloca, we know all uses of it, meaning we
don't have to preserve the invariant group intrinsics and metadata.

It's possible that we could lose information regarding redundant
loads/stores, but that's unlikely to have any real impact since right
now the only user is Clang and vtables.

Reviewed By: rnk

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




More information about the All-commits mailing list