[all-commits] [llvm/llvm-project] 5e5af5: [IR] Fix mayReadFromMemory() for writeonly calls
llvm-git-migration via All-commits
all-commits at lists.llvm.org
Sun Oct 20 23:50:51 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 5e5af533ab16bad6dc5519b97b1820732d0141a5
https://github.com/llvm/llvm-project/commit/5e5af533ab16bad6dc5519b97b1820732d0141a5
Author: Yevgeny Rouban <yevgeny.rouban at azul.com>
Date: 2019-10-21 (Mon, 21 Oct 2019)
Changed paths:
M llvm/lib/IR/Instruction.cpp
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.init.ll
A llvm/test/Transforms/EarlyCSE/writeonly.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list