summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/EarlyCSE/writeonly.ll
Commit message (Collapse)AuthorAgeFilesLines
* [IR] Fix mayReadFromMemory() for writeonly callsYevgeny Rouban2019-10-211-0/+15
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
OpenPOWER on IntegriCloud