[llvm] [Matrix] Add tests identifying GVN and DSE opportunities for matrix store / load intrinsics (PR #163573)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 08:16:01 PDT 2025


================
@@ -0,0 +1,81 @@
+; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
+
+; BasicAA should prove that loads from sufficiently large static offsets
+; don't overlap with matrix loads with a statically known size.
+
+define <8 x double> @non_overlapping_strided_load(ptr %src) {
+entry:
+  %src.offset = getelementptr inbounds double, double* %src, i32 16
----------------
fhahn wrote:

```suggestion
  %src.offset = getelementptr inbounds double, ptr %src, i32 16
```

typed pointers (double*) have been deprecated in favor of opaque pointers a while ago

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


More information about the llvm-commits mailing list