Skip to content

Commit 8d1f95f

Browse files
committed
Add [[maybe_unused]], remove unused check prefix
An unused check prefix apparently causes an error? Not sure if it was always like that.
1 parent 3cee43e commit 8d1f95f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
21022102
SubVecContainerVT = TLI.getContainerForFixedLengthVector(SubVecVT);
21032103
#ifndef NDEBUG
21042104
TypeSize VecRegSize = TypeSize::getScalable(RISCV::RVVBitsPerBlock);
2105-
bool ExactlyVecRegSized =
2105+
[[maybe_unused]] bool ExactlyVecRegSized =
21062106
Subtarget->expandVScale(SubVecVT.getSizeInBits())
21072107
.isKnownMultipleOf(Subtarget->expandVScale(VecRegSize));
21082108
assert(isPowerOf2_64(Subtarget->expandVScale(SubVecVT.getSizeInBits())

llvm/test/CodeGen/RISCV/rvv/fixed-vectors-shuffle-concat.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2-
; RUN: llc < %s -mtriple=riscv32 -mattr=+v -verify-machineinstrs | FileCheck -check-prefixes=CHECK,VLA %s
3-
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck -check-prefixes=CHECK,VLA %s
2+
; RUN: llc < %s -mtriple=riscv32 -mattr=+v -verify-machineinstrs | FileCheck -check-prefix=VLA %s
3+
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck -check-prefix=VLA %s
44

5-
; RUN: llc < %s -mtriple=riscv32 -mattr=+v -riscv-v-vector-bits-max=128 -verify-machineinstrs | FileCheck -check-prefixes=CHECK,VLS %s
6-
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -riscv-v-vector-bits-max=128 -verify-machineinstrs | FileCheck -check-prefixes=CHECK,VLS %s
5+
; RUN: llc < %s -mtriple=riscv32 -mattr=+v -riscv-v-vector-bits-max=128 -verify-machineinstrs | FileCheck -check-prefix=VLS %s
6+
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -riscv-v-vector-bits-max=128 -verify-machineinstrs | FileCheck -check-prefix=VLS %s
77

88
define <8 x i32> @concat_2xv4i32(<4 x i32> %a, <4 x i32> %b) {
99
; VLA-LABEL: concat_2xv4i32:

0 commit comments

Comments
 (0)