commit | 5e5af533ab16bad6dc5519b97b1820732d0141a5 | [log] [tgz] |
---|---|---|
author | Yevgeny Rouban <[email protected]> | Mon Oct 21 06:52:08 2019 |
committer | Yevgeny Rouban <[email protected]> | Mon Oct 21 06:52:08 2019 |
tree | 54ed0353a335fbb9d82ed0db49e750066879e594 | |
parent | ee881197b00186ada844ce0bb6969d6280a51775 [diff] |
[IR] Fix mayReadFromMemory() for writeonly calls Current implementation of Instruction::mayReadFromMemory() returns !doesNotAccessMemory() which is !ReadNone. This does not take into account that the writeonly attribute also indicates that the call does not read from memory. The patch changes the predicate to !doesNotReadMemory() that reflects the intended behavior. Differential Revision: https://reviews.llvm.org/D69086 llvm-svn: 375389