[PATCH] D125747: [RISCV] Enable scalable vectorization by default for RVV
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 20:31:42 PDT 2022
pcwang-thead added a comment.
I have done some researches before, the quality of vectorized code haven't met our expectation currently.
Actually, it is just SIMD-style vectorization for RVV for the time being.
Maybe we should wait VP-based vectorization?
================
Comment at: llvm/test/Transforms/LoopVectorize/RISCV/unroll-in-loop-vectorizer.ll:48
+; CHECK-NEXT: [[TMP25:%.*]] = bitcast i32* [[TMP24]] to <vscale x 2 x i32>*
+; CHECK-NEXT: store <vscale x 2 x i32> [[TMP20]], <vscale x 2 x i32>* [[TMP25]], align 4
+; CHECK-NEXT: [[TMP26:%.*]] = call i32 @llvm.vscale.i32()
----------------
For example, I believe this `store` is unnecessary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125747/new/
https://reviews.llvm.org/D125747
More information about the llvm-commits
mailing list