[PATCH] D123473: [LICM] Only create load in pre-header when promoting load.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 14:10:33 PDT 2022


fhahn updated this revision to Diff 424602.
fhahn added a comment.

Update the patch to not remove the writeonly attribute, but instead verify that the writeonly semantics are not violated if we need to introduce a load, as clarified in D123473 <https://reviews.llvm.org/D123473>. If the store is not guaranteed to execute, a new load should only be introduced for not escaping noalias calls or allocas.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123473/new/

https://reviews.llvm.org/D123473

Files:
  llvm/lib/Transforms/Scalar/LICM.cpp
  llvm/test/Transforms/LICM/scalar-promote.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123473.424602.patch
Type: text/x-patch
Size: 6806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220422/d98f31f0/attachment.bin>


More information about the llvm-commits mailing list