-10 20:47
To: Juzhe-Zhong; gcc-patches
CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw
Subject: Re: [PATCH] RISC-V: Add combine optimization by slideup for vec_init
vectorization
Hi Juzhe,
LGTM. The test patterns are a bit unwieldy but not a blocker
IMHO. Could probably done shorter using
Hi Juzhe,
LGTM. The test patterns are a bit unwieldy but not a blocker
IMHO. Could probably done shorter using macro magic?
Regards
Robin
This patch is a small optimization for vector initialization.
Discovered when I am evaluating benchmarks.
Consider this following case:
void foo3 (int8_t *out, int8_t x, int8_t y)
{
v16qi v = {y, y, y, y, y, y, y, x, x, x, x, x, x, x, x, x};
*(v16qi*)out = v;
}
Before this patch:
vse