Skip to content

Commit

Permalink
comment readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst-github committed Jan 2, 2025
1 parent 2a79c24 commit 1555846
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/hotspot/share/opto/mulnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2095,13 +2095,13 @@ static jint AndIL_min_trailing_zeros(const PhaseGVN* phase, const Node* expr, Ba
// The X in AndX must be I or L, depending on bt.
// Specifically, this holds for the following cases,
// when the shift value N is large enough to zero out
// all the set positions of the and-mask M.
// (AndI (LShiftI _ #N) #M) => #0
// (AndL (LShiftL _ #N) #M) => #0
// (AndL (ConvI2L (LShiftI _ #N)) #M) => #0
// as well as for constant operands:
// (AndI (ConI [+-] _ << #N) #M) => #0
// (AndL (ConL [+-] _ << #N) #M) => #0
// all the set positions of the and-mask M:
// (AndI (LShiftI _ #N) #M)
// (AndL (LShiftL _ #N) #M)
// (AndL (ConvI2L (LShiftI _ #N)) #M)
// including constant operands:
// (AndI (ConI (_ << #N)) #M)
// (AndL (ConL (_ << #N)) #M)
// The M and N values must satisfy ((-1 << N) & M) == 0.
static bool AndIL_is_zero_element(const PhaseGVN* phase, const Node* expr, const Node* mask, BasicType bt) {
const TypeInteger* mask_t = phase->type(mask)->isa_integer(bt);
Expand Down

0 comments on commit 1555846

Please sign in to comment.