Skip to content

Commit 34f34e2

Browse files
committed
Return None if +v not enabled
1 parent ce7d64f commit 34f34e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ class RISCVTTIImpl final : public BasicTTIImplBase<RISCVTTIImpl> {
116116
}
117117
TailFoldingStyle
118118
getPreferredTailFoldingStyle(bool IVUpdateMayOverflow) const override {
119-
return TailFoldingStyle::DataWithEVL;
119+
return ST->hasVInstructions() ? TailFoldingStyle::DataWithEVL
120+
: TailFoldingStyle::None;
120121
}
121122
std::optional<unsigned> getMaxVScale() const override;
122123
std::optional<unsigned> getVScaleForTuning() const override;

0 commit comments

Comments
 (0)