mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-25 13:35:39 +00:00
Revert part of r289765 that is not necessary
CS.doesNotAccessMemory(ArgNo) and CS.onlyReadsMemory(ArgNo) calls dataOperandHasImpliedAttr, so revert this part of r289765 because it should not be necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
954db62a26
commit
d11334d8af
@ -470,9 +470,9 @@ ModRefInfo AAResults::callCapturesBefore(const Instruction *I,
|
||||
// escape.
|
||||
if (isNoAlias(MemoryLocation(*CI), MemoryLocation(Object)))
|
||||
continue;
|
||||
if (ArgNo < CS.getNumArgOperands() && CS.doesNotAccessMemory(ArgNo))
|
||||
if (CS.doesNotAccessMemory(ArgNo))
|
||||
continue;
|
||||
if (ArgNo < CS.getNumArgOperands() && CS.onlyReadsMemory(ArgNo)) {
|
||||
if (CS.onlyReadsMemory(ArgNo)) {
|
||||
R = MRI_Ref;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user