Skip to content

Commit 03e5237

Browse files
committed
Backport d3776c7
1 parent f4772b5 commit 03e5237

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/hotspot/cpu/aarch64/c1_LIRGenerator_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void LIRGenerator::cmp_reg_mem(LIR_Condition condition, LIR_Opr reg, LIR_Opr bas
290290
}
291291

292292

293-
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) {
293+
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, jint c, LIR_Opr result, LIR_Opr tmp) {
294294

295295
if (is_power_of_2(c - 1)) {
296296
__ shift_left(left, exact_log2(c - 1), tmp);

src/hotspot/cpu/arm/c1_LIRGenerator_arm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void LIRGenerator::cmp_reg_mem(LIR_Condition condition, LIR_Opr reg, LIR_Opr bas
436436
}
437437

438438

439-
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) {
439+
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, jint c, LIR_Opr result, LIR_Opr tmp) {
440440
assert(left != result, "should be different registers");
441441
if (is_power_of_2(c + 1)) {
442442
#ifdef AARCH64

src/hotspot/cpu/ppc/c1_LIRGenerator_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void LIRGenerator::cmp_reg_mem(LIR_Condition condition, LIR_Opr reg, LIR_Opr bas
289289
}
290290

291291

292-
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) {
292+
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, jint c, LIR_Opr result, LIR_Opr tmp) {
293293
assert(left != result, "should be different registers");
294294
if (is_power_of_2(c + 1)) {
295295
__ shift_left(left, log2_int(c + 1), result);

src/hotspot/cpu/s390/c1_LIRGenerator_s390.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void LIRGenerator::cmp_reg_mem(LIR_Condition condition, LIR_Opr reg, LIR_Opr bas
223223
__ cmp_reg_mem(condition, reg, new LIR_Address(base, disp, type), info);
224224
}
225225

226-
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) {
226+
bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, jint c, LIR_Opr result, LIR_Opr tmp) {
227227
if (tmp->is_valid()) {
228228
if (is_power_of_2(c + 1)) {
229229
__ move(left, tmp);

0 commit comments

Comments
 (0)