[PATCH] D106545: SROA: Process bitcast (select ptr1, ptr2)

Christudasan Devadasan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 22 06:35:30 PDT 2021


cdevadas created this revision.
cdevadas added reviewers: arsenm, chandlerc, jingyue.
Herald added a subscriber: hiraditya.
cdevadas requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

After D79171 <https://reviews.llvm.org/D79171>, there is a type reversal in the insertelement
operation and its inputs resulting in a new IR pattern that during
SROA prevents `speculateSelectInstLoads` and `PromoteMemToReg`
for certain input scenarios. This patch will restore them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106545

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/phi-and-select.ll
  llvm/test/Transforms/SROA/select-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106545.360788.patch
Type: text/x-patch
Size: 5151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/a5403c6e/attachment.bin>


More information about the llvm-commits mailing list