Skip to content

Commit c10322f

Browse files
committed
fixup! [RISCV] Toggle throttled FP64 feature in SiFive7 scheduling model with subtarget feature
1 parent 20a28c7 commit c10322f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrPredicates.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// otherwise.
1515
def VLDSX0Pred : MCSchedPredicate<CheckRegOperand<3, X0>>;
1616

17+
// This scheduling predicate is true when subtarget feature TuneHasThrottledVecFP64
18+
// is enabled.
1719
def ThrottledVecFP64SchedPred : FeatureSchedPredicate<TuneHasThrottledVecFP64>;
1820

1921
// Returns true if this is the sext.w pattern, addiw rd, rs1, 0.

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def SIFIVE_X390 : RISCVProcessorModel<"sifive-x390",
338338
FeatureStdExtZvl1024b,
339339
FeatureVendorXSiFivecdiscarddlone,
340340
FeatureVendorXSiFivecflushdlone],
341-
!listconcat(SiFiveIntelligenceTuneFeatures,
342-
[TuneHasThrottledVecFP64])>;
341+
!listconcat(SiFiveIntelligenceTuneFeatures,
342+
[TuneHasThrottledVecFP64])>;
343343

344344
defvar SiFiveP400TuneFeatures = [TuneNoDefaultUnroll,
345345
TuneConditionalCompressedMoveFusion,

0 commit comments

Comments
 (0)