[all-commits] [llvm/llvm-project] 54a3c2: [ThinLTO] Add option to disable readonly/writeonly...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Thu Dec 5 16:34:08 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 54a3c2a81e1a0ff970705008e9285ea3ada4ef3e
      https://github.com/llvm/llvm-project/commit/54a3c2a81e1a0ff970705008e9285ea3ada4ef3e
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2019-12-05 (Thu, 05 Dec 2019)

  Changed paths:
    M llvm/lib/IR/ModuleSummaryIndex.cpp
    M llvm/lib/Transforms/IPO/FunctionImport.cpp
    M llvm/test/ThinLTO/X86/writeonly.ll

  Log Message:
  -----------
  [ThinLTO] Add option to disable readonly/writeonly attribute propagation

Summary:
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).

Also move the setting of the WithAttributePropagation flag on the index
into propagateAttributes(), and remove some old stale code that predated
this flag and cleared the maybe read/write only bits when we need to
disable the propagation (previously only when importing disabled, now
also when the new option disables it).

Reviewers: evgeny777, steven_wu

Subscribers: mehdi_amini, inglorion, hiraditya, dexonsmith, arphaman, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70984




More information about the All-commits mailing list