File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
llvm/test/Transforms/LoopVectorize/RISCV Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11; REQUIRES: asserts
22; RUN: opt -passes=loop-vectorize -mtriple riscv64 -mattr=+v -vectorizer-maximize-bandwidth -debug-only=loop-vectorize,vplan -disable-output -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-REGS-VP
3- ; RUN: opt -passes=loop-vectorize -mtriple riscv64 -mattr=+v -vectorizer-maximize-bandwidth -debug-only=loop-vectorize -disable-output -force-target-num-vector-regs=1 -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-NOREGS-VP
3+
44define i32 @dotp (ptr %a , ptr %b ) {
55; CHECK-REGS-VP: LV(REG): VF = vscale x 16
66; CHECK-REGS-VP-NEXT: LV(REG): Found max usage: 2 item
77; CHECK-REGS-VP-NEXT: LV(REG): RegisterClass: RISCV::GPRRC, 6 registers
88; CHECK-REGS-VP-NEXT: LV(REG): RegisterClass: RISCV::VRRC, 24 registers
99; CHECK-REGS-VP-NEXT: LV(REG): Found invariant usage: 1 item
1010; CHECK-REGS-VP-NEXT: LV(REG): RegisterClass: RISCV::GPRRC, 1 registers
11- ; CHECK-REGS-VP: LV: Selecting VF: vscale x 16.
12- ;
13- ; CHECK-NOREGS-VP: LV(REG): Not considering vector loop of width vscale x 8 because it uses too many registers
14- ; CHECK-NOREGS-VP: LV(REG): Not considering vector loop of width vscale x 16 because it uses too many registers
15- ; CHECK-NOREGS-VP: LV: Selecting VF: vscale x 4.
11+ ; CHECK-REGS-VP: LV: Selecting VF: vscale x 16.
1612entry:
1713 br label %for.body
1814
You can’t perform that action at this time.
0 commit comments