Re: [PATCH] Constant fold even masked shift builtins

2018-05-16 Thread Kirill Yukhin
Hello Jakub, On 11 мая 10:10, Jakub Jelinek wrote: > Hi! > > On top of the earlier 3 pending patches, this patch adds constant folding > of the shifts even when the mask is not all ones (as long as the orig value > argument is VECTOR_CST too). Then we can just do the blend according to the > cons

[PATCH] Constant fold even masked shift builtins

2018-05-11 Thread Jakub Jelinek
Hi! On top of the earlier 3 pending patches, this patch adds constant folding of the shifts even when the mask is not all ones (as long as the orig value argument is VECTOR_CST too). Then we can just do the blend according to the constant mask. Bootstrapped/regtested on x86_64-linux and i686-lin