[PATCH] D25584: [polly codegen] Handle multi-dimensional invariant load.

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 14 01:18:25 PDT 2016


jdoerfert added a comment.

I realized that we should check hoisting is actually performed.



================
Comment at: test/Isl/CodeGen/invariant-load-dimension.ll:3
+target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64"
+
+%S = type { i32, i32, [12 x %L] }
----------------
Maybe add another check line that verifies we actually hoist the multidimensional loads.

```
    Invariant Accesses: {
            ReadAccess :=	[Reduction Type: NONE] [Scalar: 0]
                [l2, l1] -> { Stmt_for_body_i[i0] -> MemRef_cpi[0, 0] };
            Execution Context: [l2, l1] -> {  :  }
            ReadAccess :=	[Reduction Type: NONE] [Scalar: 0]
                [l2, l1] -> { Stmt_for_body_lr_ph_i[] -> MemRef_cpi[0, 1] };
            Execution Context: [l2, l1] -> {  : l2 > 0 }
    }

```


Repository:
  rL LLVM

https://reviews.llvm.org/D25584





More information about the llvm-commits mailing list