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:
Hal Finkel 2016-12-15 05:50:45 +00:00
parent 954db62a26
commit d11334d8af

View File

@ -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;
}