[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
       
    Tue Oct 21 11:42:51 PDT 2025
    
    
  
================
@@ -0,0 +1,85 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -passes=gvn -S %s | FileCheck %s
+
+define <8 x double> @redundant_unstrided_load(ptr %src) {
----------------
fhahn wrote:
I might have missed it, but I think it would also be good to add a few tests where we have 2 matrix stores with different number of rows and columns for DSE (i.e 2 stores to the same pointer one storing more than the other, with both possible orderings; one case should eventually be simplified). And something similar for GVN with loads
https://github.com/llvm/llvm-project/pull/163573
    
    
More information about the llvm-commits
mailing list