Skip to content

Commit ad7940b

Browse files
committed
[RISCV] Add a new subtarget feature for throttled vector FP64
1 parent 198f294 commit ad7940b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,6 +1823,10 @@ def TuneConditionalCompressedMoveFusion
18231823
def HasConditionalMoveFusion : Predicate<"Subtarget->hasConditionalMoveFusion()">;
18241824
def NoConditionalMoveFusion : Predicate<"!Subtarget->hasConditionalMoveFusion()">;
18251825

1826+
def TuneHasThrottledVecFP64
1827+
: SubtargetFeature<"throttled-vec-fp64", "HasThrottledVectorFP64", "true",
1828+
"Certain vector FP64 operations have limited performance">;
1829+
18261830
def TuneMIPSP8700
18271831
: SubtargetFeature<"mips-p8700", "RISCVProcFamily", "MIPSP8700",
18281832
"MIPS p8700 processor">;

llvm/test/CodeGen/RISCV/features-info.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
; CHECK-NEXT: svpbmt - 'Svpbmt' (Page-Based Memory Types).
180180
; CHECK-NEXT: svvptc - 'Svvptc' (Obviating Memory-Management Instructions after Marking PTEs Valid).
181181
; CHECK-NEXT: tagged-globals - Use an instruction sequence for taking the address of a global that allows a memory tag in the upper address bits.
182+
; CHECK-NEXT: throttled-vec-fp64 - Certain vector FP64 operations have limited performance.
182183
; CHECK-NEXT: unaligned-scalar-mem - Has reasonably performant unaligned scalar loads and stores.
183184
; CHECK-NEXT: unaligned-vector-mem - Has reasonably performant unaligned vector loads and stores.
184185
; CHECK-NEXT: use-postra-scheduler - Schedule again after register allocation.

0 commit comments

Comments
 (0)