[PATCH] D86570: [SROA] Improve handleling of assumes bundles by SROA

Tyker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 13:06:24 PDT 2020


Tyker created this revision.
Tyker added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Tyker requested review of this revision.

This patch fixes this crash https://gcc.godbolt.org/z/Ps8d1e
And gives SROA the ability to remove assumes if it allows promoting an alloca to register
Without removing assumes when it can't promote to register.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86570

Files:
  llvm/include/llvm/IR/Value.h
  llvm/lib/IR/Value.cpp
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/assume.ll
  llvm/test/Transforms/SROA/ignore-droppable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86570.287759.patch
Type: text/x-patch
Size: 5695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/4adceef0/attachment.bin>


More information about the llvm-commits mailing list