Skip to content

Commit 2a79c24

Browse files
committed
consistently use bt
1 parent df79a96 commit 2a79c24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/opto/mulnode.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ static jint AndIL_min_trailing_zeros(const PhaseGVN* phase, const Node* expr, Ba
20682068
}
20692069

20702070
if (type->is_con()) {
2071-
long con = type->get_con_as_long(type->basic_type());
2071+
long con = type->get_con_as_long(bt);
20722072
return con == 0L ? (type2aelembytes(bt) * BitsPerByte) : count_trailing_zeros(con);
20732073
}
20742074

@@ -2078,7 +2078,7 @@ static jint AndIL_min_trailing_zeros(const PhaseGVN* phase, const Node* expr, Ba
20782078
type = phase->type(expr)->isa_int();
20792079
}
20802080

2081-
if (expr->Opcode() == Op_LShift(type->basic_type())) {
2081+
if (expr->Opcode() == Op_LShift(bt)) {
20822082
const TypeInt* rhs_t = phase->type(expr->in(2))->isa_int();
20832083
if (rhs_t == nullptr || !rhs_t->is_con()) {
20842084
return 0;

0 commit comments

Comments
 (0)