[PATCH] D146974: [test] A test case for D146958

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 02:36:32 PDT 2023


fhahn added inline comments.


================
Comment at: llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll:3
+
+define void @foo(ptr %pout, ptr %pin, i64 %val0, i64 %val1, i64 %val2) {
+; CHECK-LABEL: @foo(
----------------
could you add a brief comment saying what this test is intended to check?


================
Comment at: llvm/test/Transforms/LoopVectorize/vector-no-scevcheck.ll:15
+  %mul0 = mul nsw i64 %i, %val2
+  %arrayidx0 = getelementptr inbounds double, ptr %0, i64 %mul0
+  %mul1 = mul nsw i64 %i, %val1
----------------
Could you add a new function that's basically the same as `@foo` but has `%arrayidx0` in `%loop2.header`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146974



More information about the llvm-commits mailing list