SuperWord::unrolling_analysis() question

Roland Westrelin rwestrel at
Tue Apr 26 14:29:50 UTC 2016

Why does SuperWord::unrolling_analysis() use:

int max_vector = Matcher::max_vector_size(T_INT);

instead of:

int max_vector = Matcher::max_vector_size(T_BYTE);


For a loop like this:

static void test_byte(byte[] src, byte[] dst) {
    for (int i = 0; i < src.length; i++) {
        dst[i] = src[i];

It limits the size of the vectors that are used below what the hardware
can support.


More information about the hotspot-compiler-dev mailing list