HomePhabricator

[IR] Mark memset.* intrinsics as IntrWriteMem.
e2b6aa38045cUnpublished

Authored by fhahn on Jan 16 2020, 2:25 AM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[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

(Cherry-picked from 0b21d552620dd593ddc93a93b5e779d5950f4a24)

Details

Committed
fhahnMar 7 2020, 8:32 AM
Reviewer
jdoerfert
Differential Revision
D72789: [IR] Mark memset.* intrinsics as IntrWriteMem.
Parents
rG8b0c9cc763fc: Merge pull request #878 from apple/57372317-cherry-pick
Branches
Unknown
Tags
Unknown