[PATCH] D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes()

Vedant Paranjape via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 02:45:33 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG259d56d41d66: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes() (authored by vedant-amd).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156304/new/

https://reviews.llvm.org/D156304

Files:
  llvm/include/llvm/Analysis/LoopAccessAnalysis.h


Index: llvm/include/llvm/Analysis/LoopAccessAnalysis.h
===================================================================
--- llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -200,7 +200,7 @@
 
   /// The maximum number of bytes of a vector register we can vectorize
   /// the accesses safely with.
-  uint64_t getMaxSafeDepDistBytes() { return MaxSafeDepDistBytes; }
+  uint64_t getMaxSafeDepDistBytes() const { return MaxSafeDepDistBytes; }
 
   /// Return the number of elements that are safe to operate on
   /// simultaneously, multiplied by the size of the element in bits.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156304.545557.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/77b003b5/attachment.bin>


More information about the llvm-commits mailing list