From d11334d8af72b456a876fc3025c066d98dc04678 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Thu, 15 Dec 2016 05:50:45 +0000 Subject: [PATCH] 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 --- lib/Analysis/AliasAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/AliasAnalysis.cpp b/lib/Analysis/AliasAnalysis.cpp index 10b3ed91659..d5676455d1e 100644 --- a/lib/Analysis/AliasAnalysis.cpp +++ b/lib/Analysis/AliasAnalysis.cpp @@ -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; }