1. [IR] Fix mayReadFromMemory() for writeonly calls (details)
Commit 5e5af533ab16bad6dc5519b97b1820732d0141a5 by yevgeny.rouban
[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:
llvm-svn: 375389
The file was modifiedllvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.init.ll
The file was addedllvm/test/Transforms/EarlyCSE/writeonly.ll
The file was modifiedllvm/lib/IR/Instruction.cpp