[PATCH] D70984: [ThinLTO] Add option to disable readonly/writeonly attribute propagation

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 14:08:14 PST 2019


tejohnson created this revision.
tejohnson added reviewers: evgeny777, steven_wu.
Herald added subscribers: arphaman, dexonsmith, hiraditya, inglorion, mehdi_amini.
Herald added a project: LLVM.

Add an option to allow the attribute propagation on the index to be
disabled, to allow a workaround for issues (such as that fixed by
D70977 <https://reviews.llvm.org/D70977>). Restructure the code to include all attribute propagation
handling into propagateAttributes() itself (rather than having some in
the caller), which also simplifies handling of the new option.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70984

Files:
  llvm/include/llvm/IR/ModuleSummaryIndex.h
  llvm/lib/IR/ModuleSummaryIndex.cpp
  llvm/lib/Transforms/IPO/FunctionImport.cpp
  llvm/test/ThinLTO/X86/writeonly.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70984.231987.patch
Type: text/x-patch
Size: 4479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191203/849bcd44/attachment.bin>


More information about the llvm-commits mailing list