[PATCH] D107281: [SimpifyCFG] Speculate a store preceded by a local non-escaping load
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 2 07:45:17 PDT 2021
chill created this revision.
Herald added subscribers: jfb, hiraditya.
chill requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In SimplifyCFG we may simplify the CFG by speculatively executing
certain stores, when they are preceded by a store to the same
location. This patch allows such speculation also when the stores are
similarly preceded by a load, when we are accessing a local object,
whose address does not escape.
https://reviews.llvm.org/D107281
Files:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/speculate-store.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107281.363475.patch
Type: text/x-patch
Size: 5215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210802/506760bf/attachment.bin>
More information about the llvm-commits
mailing list