[llvm] [Delinearization] Add function for fixed size array without relying on GEP (PR #145050)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 06:18:40 PDT 2025


================
@@ -32,6 +33,11 @@ using namespace llvm;
 #define DL_NAME "delinearize"
 #define DEBUG_TYPE DL_NAME
 
+static cl::opt<bool> UseFixedSizeArrayHeuristic(
+    "delinearize-use-fixed-size-array-heuristic", cl::init(false), cl::Hidden,
+    cl::desc("When printing analysis, use the heuristic for fixed-size arrays "
----------------
kasuga-fj wrote:

There might be a misunderstanding? Currently there are two functions for delinearization; `delinearize` and `tryDelinearizeFixedSizeImpl`. These two functions are independent of each other, and the newly added function `delinearizeFixedSize` in this patch is intended to eventually replace all of calls to `tryDelinearizeFixedSizeImpl`. So this flag only affects the behavior of printing.

Although I think it would be ideal to merge `delinearize` and `delinearizeFixedSize` into a single function, that is a different topic.

https://github.com/llvm/llvm-project/pull/145050


More information about the llvm-commits mailing list