[PATCH] [DagCombiner] Generalized BuildVector Vector Concatenation
llvm-dev at redking.me.uk
Sun Feb 22 07:06:06 PST 2015
Hi qcolombet, chandlerc, andreadb,
The CONCAT_VECTORS combiner pass can transform the concat of two BUILD_VECTOR nodes into a single BUILD_VECTOR node.
This patch generalises this to support any number of BUILD_VECTOR nodes, and also permits UNDEF nodes to be included as well.
This was noticed as AVX vec128 -> vec256 canonicalization sometimes creates a CONCAT_VECTOR with a real vec128 lower and an vec128 UNDEF upper (see zext test modifications).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6462 bytes
Desc: not available
More information about the llvm-commits