[PATCH] D83978: [SROA] Teach promote to register about droppable instructions

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 12:11:09 PDT 2020


jdoerfert created this revision.
jdoerfert added reviewers: Tyker, fhahn, lebedev.ri, nicholas.
Herald added a project: LLVM.

This is the second of two patches to address PR46753. We basically allow
SROA to promote allocas that are used in doppable instructions, for
now that means `llvm.assume`. The (transitive) uses are replaced by
`undef` in the droppable instructions.

See also D83976 <https://reviews.llvm.org/D83976>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83978

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/ignore-droppable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83978.278572.patch
Type: text/x-patch
Size: 6675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/66aea5aa/attachment.bin>


More information about the llvm-commits mailing list