[all-commits] [llvm/llvm-project] f2c042: [msan] Remove readnone and friends from call sites.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Wed Aug 5 10:41:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f2c04239955a8e0d71aa27f7ffa3bbba6c623aef
      https://github.com/llvm/llvm-project/commit/f2c04239955a8e0d71aa27f7ffa3bbba6c623aef
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/test/Instrumentation/MemorySanitizer/attributes.ll

  Log Message:
  -----------
  [msan] Remove readnone and friends from call sites.

MSan removes readnone/readonly and similar attributes from callees,
because after MSan instrumentation those attributes no longer apply.

This change removes the attributes from call sites, as well.

Failing to do this may cause DSE of paramTLS stores before calls to
readonly/readnone functions.

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




More information about the All-commits mailing list