[all-commits] [llvm/llvm-project] 0b21d5: [IR] Mark memset.* intrinsics as IntrWriteMem.

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jan 16 02:41:19 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b21d552620dd593ddc93a93b5e779d5950f4a24
      https://github.com/llvm/llvm-project/commit/0b21d552620dd593ddc93a93b5e779d5950f4a24
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-01-16 (Thu, 16 Jan 2020)

  Changed paths:
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/test/Analysis/BasicAA/cs-cs.ll
    M llvm/test/Transforms/DeadStoreElimination/simple.ll
    M llvm/test/Transforms/InstCombine/malloc-free-delete.ll
    M llvm/test/Transforms/ObjCARC/nested.ll

  Log Message:
  -----------
  [IR] Mark memset.* intrinsics as IntrWriteMem.

llvm.memset intrinsics do only write memory, but are missing
IntrWriteMem, so they doesNotReadMemory() returns false for them.

The test change is due to the test checking the fn attribute ids at the
call sites, which got bumped up due to a new combination with writeonly
appearing in the test file.

Reviewers: jdoerfert, reames, efriedma, nlopes, lebedev.ri

Reviewed By: jdoerfert

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




More information about the All-commits mailing list