If X is nonzero, NextPowerOf2(X - 1) is equivalent to llvm::bit_ceil(X). In this patch, std::max guarantees that X is nonzero.
mentioned in commit bfe63ed1