[PATCH] D99760: [SROA] Allow SROA on pointers with invariant group intrinsic uses

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 12:32:11 PDT 2021


aeubanks created this revision.
aeubanks added reviewers: rnk, Prazek.
Herald added subscribers: dexonsmith, hiraditya.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99760

Files:
  llvm/include/llvm/IR/Instruction.h
  llvm/lib/IR/Instruction.cpp
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/invariant-group.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99760.334796.patch
Type: text/x-patch
Size: 6023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/5ecfe515/attachment.bin>


More information about the llvm-commits mailing list