Skip to content

Commit 0d66689

Browse files
committed
8344393: RISC-V: Remove option UseRVVForBigIntegerShiftIntrinsics
Reviewed-by: mli, fjiang
1 parent 7540fa2 commit 0d66689

File tree

6 files changed

+2
-10
lines changed

6 files changed

+2
-10
lines changed

src/hotspot/cpu/riscv/globals_riscv.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ define_pd_global(intx, InlineSmallCode, 1000);
117117
product(bool, UseZvfh, false, DIAGNOSTIC, "Use Zvfh instructions") \
118118
product(bool, UseZvkn, false, EXPERIMENTAL, \
119119
"Use Zvkn group extension, Zvkned, Zvknhb, Zvkb, Zvkt") \
120-
product(bool, UseRVVForBigIntegerShiftIntrinsics, true, \
121-
"Use RVV instructions for left/right shift of BigInteger") \
122120
product(bool, UseCtxFencei, false, EXPERIMENTAL, \
123121
"Use PR_RISCV_CTX_SW_FENCEI_ON to avoid explicit icache flush")
124122

src/hotspot/cpu/riscv/stubGenerator_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6502,7 +6502,7 @@ static const int64_t right_3_bits = right_n_bits(3);
65026502
StubRoutines::_poly1305_processBlocks = generate_poly1305_processBlocks();
65036503
}
65046504

6505-
if (UseRVVForBigIntegerShiftIntrinsics) {
6505+
if (UseRVV) {
65066506
StubRoutines::_bigIntegerLeftShiftWorker = generate_bigIntegerLeftShift();
65076507
StubRoutines::_bigIntegerRightShiftWorker = generate_bigIntegerRightShift();
65086508
}

src/hotspot/cpu/riscv/vm_version_riscv.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ void VM_Version::c2_initialize() {
233233

234234
if (!UseRVV) {
235235
FLAG_SET_DEFAULT(MaxVectorSize, 0);
236-
FLAG_SET_DEFAULT(UseRVVForBigIntegerShiftIntrinsics, false);
237236
} else {
238237
if (!FLAG_IS_DEFAULT(MaxVectorSize) && MaxVectorSize != _initial_vector_length) {
239238
warning("Current system does not support RVV vector length for MaxVectorSize %d. Set MaxVectorSize to %d",

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/riscv64/RISCV64HotSpotJVMCIBackendFactory.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ private static EnumSet<RISCV64.Flag> computeFlags(RISCV64HotSpotVMConfig config)
7676
if (config.useZbb) {
7777
flags.add(RISCV64.Flag.UseZbb);
7878
}
79-
if (config.useRVVForBigIntegerShiftIntrinsics) {
80-
flags.add(RISCV64.Flag.UseRVVForBigIntegerShiftIntrinsics);
81-
}
8279

8380
return flags;
8481
}

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/riscv64/RISCV64HotSpotVMConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class RISCV64HotSpotVMConfig extends HotSpotVMConfigAccess {
5050
final boolean useRVC = getFlag("UseRVC", Boolean.class);
5151
final boolean useZba = getFlag("UseZba", Boolean.class);
5252
final boolean useZbb = getFlag("UseZbb", Boolean.class);
53-
final boolean useRVVForBigIntegerShiftIntrinsics = getFlag("UseRVVForBigIntegerShiftIntrinsics", Boolean.class);
5453

5554
final long vmVersionFeatures = getFieldValue("Abstract_VM_Version::_features", Long.class, "uint64_t");
5655
}

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/riscv64/RISCV64.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public enum Flag {
170170
UseRVV,
171171
UseRVC,
172172
UseZba,
173-
UseZbb,
174-
UseRVVForBigIntegerShiftIntrinsics
173+
UseZbb
175174
}
176175

177176
private final EnumSet<Flag> flags;

0 commit comments

Comments
 (0)