[PATCH] D153932: [AliasAnalysis] Mark fences as not Mod'ing unescaped local values

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 17:40:25 PDT 2023


aeubanks created this revision.
Herald added subscribers: jeroen.dobbelaere, hiraditya.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Addresses a regression reported in D145210 <https://reviews.llvm.org/D145210>.

Unescaped local values cannot be Mod'd by fences since other threads
either cannot know the address (unescaped alloca) or it would be UB
(noalias).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153932

Files:
  llvm/lib/Analysis/AliasAnalysis.cpp
  llvm/test/Transforms/EarlyCSE/fence.ll
  llvm/test/Transforms/GVN/fence.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153932.535207.patch
Type: text/x-patch
Size: 4120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230628/9a6c2045/attachment.bin>


More information about the llvm-commits mailing list