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 0713345
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/hotspot/share/opto/mulnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,15 +2093,15 @@ static jint AndIL_min_trailing_zeros(const PhaseGVN* phase, const Node* expr, Ba
// whether expr is neutral wrt addition under mask
// and hence the result is always equivalent to (AndX T mask),
// The X in AndX must be I or L, depending on bt.
// Specifically, this holds for the following cases,
// 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 0713345

Please sign in to comment.