-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[VPlan] Always consider register pressure on RISC-V #156951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
77df7b4
b6a52d8
57d26c5
d34d4ed
9c2cc07
9f620fa
e11d350
ee5c2a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
; REQUIRES: asserts | ||
; RUN: opt -passes=loop-vectorize -mtriple riscv64 -mattr=+v,+zvfbfmin -prefer-predicate-over-epilogue=scalar-epilogue -debug-only=loop-vectorize,vplan --disable-output -riscv-v-register-bit-width-lmul=1 -S < %s 2>&1 | FileCheck %s | ||
|
||
; TODO: -prefer-predicate-over-epilogue=scalar-epilogue was added to allow | ||
|
||
; unrolling. Calculate register pressure for all VPlans, not just unrolled ones, | ||
; and remove. | ||
; RUN: opt -passes=loop-vectorize -mtriple riscv64 -mattr=+v,+zvfbfmin -debug-only=loop-vectorize,vplan --disable-output -riscv-v-register-bit-width-lmul=1 -S < %s 2>&1 | FileCheck %s | ||
|
||
define void @add(ptr noalias nocapture readonly %src1, ptr noalias nocapture readonly %src2, i32 signext %size, ptr noalias nocapture writeonly %result) { | ||
; CHECK-LABEL: add | ||
; CHECK: LV(REG): Found max usage: 2 item | ||
; CHECK-NEXT: LV(REG): RegisterClass: RISCV::GPRRC, 3 registers | ||
; CHECK: LV(REG): VF = vscale x 4 | ||
; CHECK-NEXT: LV(REG): Found max usage: 2 item | ||
; CHECK-NEXT: LV(REG): RegisterClass: RISCV::GPRRC, 6 registers | ||
; CHECK-NEXT: LV(REG): RegisterClass: RISCV::VRRC, 4 registers | ||
; CHECK-NEXT: LV(REG): Found invariant usage: 1 item | ||
; CHECK-NEXT: LV(REG): RegisterClass: RISCV::GPRRC, 1 registers | ||
|
Uh oh!
There was an error while loading. Please reload this page.