Skip to content
Commit 3a4ad45a authored by Luke Lau's avatar Luke Lau
Browse files

[DAGCombiner] Combine trunc (splat_vector x) -> splat_vector (trunc x)

From the discussion in https://reviews.llvm.org/D158853, moving the truncate
into the splat helps more splatted scalar operands get selected on RISC-V, and
also avoids the need for splat_vector_parts on RV32.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D159147
parent aa539b12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment