[all-commits] [llvm/llvm-project] ca28e3: [IR] Mark assume/annotation as InaccessibleMemOnly

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Mar 22 14:01:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca28e32359c60da6216960522c545c0c20761a21
      https://github.com/llvm/llvm-project/commit/ca28e32359c60da6216960522c545c0c20761a21
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-22 (Mon, 22 Mar 2021)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/Analysis/BasicAliasAnalysis.cpp
    M llvm/test/Transforms/Attributor/dereferenceable-1.ll
    M llvm/test/Transforms/Attributor/lvi-after-jumpthreading.ll
    M llvm/test/Transforms/Attributor/nofree.ll
    M llvm/test/Transforms/Attributor/nonnull.ll
    M llvm/test/Transforms/InstCombine/annotation-intrinsic.ll

  Log Message:
  -----------
  [IR] Mark assume/annotation as InaccessibleMemOnly

These intrinsics don't need to be marked as arbitrary writing,
it's sufficient to write inaccessible memory (aka "side effect")
to preserve control dependencies. This means less special-casing
in BasicAA. This is intended as an alternative to D98925.

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




More information about the All-commits mailing list