On Thu, Apr 28, 2016 at 12:36 PM, Ilya Enkovich <[email protected]> wrote:
> That's what I have in my draft for DImode immediates:
>
> @@ -3114,6 +3123,20 @@ scalar_chain::build (bitmap candidates,
> unsigned insn_uid)
> BITMAP_FREE (queue);
> }
>
> +/* Return a cost of building a vector costant
> + instead of using a scalar one. */
> +
> +int
> +scalar_chain::vector_const_cost (rtx exp)
> +{
> + gcc_assert (CONST_INT_P (exp));
> +
> + if (const0_operand (exp, GET_MODE (exp))
> + || constm1_operand (exp, GET_MODE (exp)))
The above should just use
standard_sse_constant_p (exp, V2DImode).
Uros.