[PATCH, vectorizer]: Fix PR tree-optimization/33846, ICE in trunc_int_for_mode, at explow.c:55
Eric Botcazou
ebotcazou@libertysurf.fr
Mon Oct 22 11:29:00 GMT 2007
> The fix is simply to pass inner mode of the vector mode to the
> trunc_int_for_mode when shift-by-constant-scalar-value RTX is
> processed. I have checked that the loop is still vecotrized (and
> expected result is produced).
The subject of the message should not be "vectorizer" then.
> Patch was bootstrapped and regression tested on i686-pc-linux-gnu.
>
> OK for mainline
No, I think that
GET_CODE (XEXP (varop, 1)) == CONST_INT
should have avoided the problem. Where does the CONST_INT come from?
> 2007-10-22 Uros Bizjak <ubizjak@gmail.com>
>
> PR tree-optimization/33846
> * combine.c (simplify_shift_const_1): Use inner mode for vector
> shift_mode in the call to trunc_int_for_mode when varop == XOR.
It's PR rtl-optimization/33846 if you touch the combiner.
--
Eric Botcazou
More information about the Gcc-patches
mailing list