HomePhabricator

[IR] Fix mayReadFromMemory() for writeonly calls

Authored by yrouban on Oct 20 2019, 11:52 PM.

Description

[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

Details

Committed
yroubanOct 20 2019, 11:52 PM
Differential Revision
D69086: [IR] Fix mayReadFromMemory() for writeonly calls
Parents
rGee881197b001: [BPF] fix indirect call assembly code
Branches
Unknown
Tags
Unknown