[PATCH] D149888: [RISCV][SLP] Add tests for GEP costs in SLP
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 12:33:17 PDT 2023
ABataev added inline comments.
================
Comment at: llvm/test/Analysis/CostModel/RISCV/gep-zero-indices.ll:7-23
+define ptr @zero_indices_i32(ptr %p) {
+; CHECK-LABEL: 'zero_indices_i32'
+; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %x = getelementptr i32, ptr %p, i32 0
+; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret ptr %x
+;
+ %x = getelementptr i32, ptr %p, i32 0
+ ret ptr %x
----------------
Could you add some more tests with other types/vector lengths?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149888/new/
https://reviews.llvm.org/D149888
More information about the llvm-commits
mailing list