[ValueTracking] Remove AllocaForValue parameter
authorVitaly Buka <vitalybuka@google.com>
Fri, 31 Jul 2020 01:48:34 +0000 (18:48 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 31 Jul 2020 01:48:34 +0000 (18:48 -0700)
commitb256cb88a716dfd270745af1bb98b49c22521a99
treea9916c1142fc2994d4ead483ec4fbec50ef836c7
parent0f1016562648e0c5ab0618823d5d6b7280ca86ba
[ValueTracking] Remove AllocaForValue parameter

findAllocaForValue uses AllocaForValue to cache resolved values.
The function is used only to resolve arguments of lifetime
intrinsic which usually are not fare for allocas. So result reuse
is likely unnoticeable.

In followup patches I'd like to replace the function with
GetUnderlyingObjects.

Depends on D84616.

Differential Revision: https://reviews.llvm.org/D84617
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Target/AArch64/AArch64StackTagging.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp