]> granicus.if.org Git - llvm/commitdiff
[Mem2Reg] Delete unused PointerAllocaValues
authorFangrui Song <maskray@google.com>
Sun, 14 Apr 2019 07:28:29 +0000 (07:28 +0000)
committerFangrui Song <maskray@google.com>
Sun, 14 Apr 2019 07:28:29 +0000 (07:28 +0000)
It is unused after AliasSetTracker support was removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358352 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/PromoteMemoryToRegister.cpp

index 4cdef6def019bf6e58e82cd9b574823b02a4d768..d58e1ea574ef810e972a1bef3517b951556f2878 100644 (file)
@@ -249,11 +249,6 @@ struct PromoteMem2Reg {
   /// to.
   DenseMap<PHINode *, unsigned> PhiToAllocaMap;
 
-  /// If we are updating an AliasSetTracker, then for each alloca that is of
-  /// pointer type, we keep track of what to copyValue to the inserted PHI
-  /// nodes here.
-  std::vector<Value *> PointerAllocaValues;
-
   /// For each alloca, we keep track of the dbg.declare intrinsic that
   /// describes it, if any, so that we can convert it to a dbg.value
   /// intrinsic if the alloca gets promoted.