[polly] r255717 - ScopInfo: Delete code that has been made dead by previous commits

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 15:50:09 PST 2015


Author: grosser
Date: Tue Dec 15 17:50:09 2015
New Revision: 255717

URL: http://llvm.org/viewvc/llvm-project?rev=255717&view=rev
Log:
ScopInfo: Delete code that has been made dead by previous commits

In case this functionality is needed in later patches, it should probably be
(re)added by these patches.

Modified:
    polly/trunk/include/polly/ScopInfo.h

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=255717&r1=255716&r2=255717&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Tue Dec 15 17:50:09 2015
@@ -957,13 +957,6 @@ public:
   /// @brief Return true if this statement does not contain any accesses.
   bool isEmpty() const { return MemAccs.empty(); }
 
-  /// @brief Return the (scalar) memory accesses for @p Inst.
-  const MemoryAccessList &getAccessesFor(const Instruction *Inst) const {
-    MemoryAccessList *MAL = lookupAccessesFor(Inst);
-    assert(MAL && "Cannot get memory accesses because they do not exist!");
-    return *MAL;
-  }
-
   /// @brief Return the (scalar) memory accesses for @p Inst if any.
   MemoryAccessList *lookupAccessesFor(const Instruction *Inst) const {
     auto It = InstructionToAccess.find(Inst);
@@ -972,13 +965,6 @@ public:
     return It->getSecond()->empty() ? nullptr : It->getSecond();
   }
 
-  /// @brief Return the __first__ (scalar) memory access for @p Inst.
-  const MemoryAccess &getAccessFor(const Instruction *Inst) const {
-    MemoryAccess *MA = lookupAccessFor(Inst);
-    assert(MA && "Cannot get memory access because it does not exist!");
-    return *MA;
-  }
-
   /// @brief Return the only array access for @p Inst.
   ///
   /// @param Inst The instruction for which to look up the access.




More information about the llvm-commits mailing list