[all-commits] [llvm/llvm-project] 1eb5b6: [InferAttrs] If readonly is already set, set readn...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jan 4 18:59:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eb5b6e85045d22720f177a02aaf7097930e4b4f
      https://github.com/llvm/llvm-project/commit/1eb5b6e85045d22720f177a02aaf7097930e4b4f
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  -----------
  [InferAttrs] If readonly is already set, set readnone instead of writeonly

D116426 may lead to an assertion failure `Attributes 'readonly and writeonly' are incompatible!` if the builtin function already has `readonly`.




More information about the All-commits mailing list