[LLVMdev] Folding an insertelt chain
ivanllopard at gmail.com
Fri Feb 17 00:50:38 PST 2012
I've added a little combining operation in DAGCombiner to fold a chain
of insertelt nodes if that chain is proved to fully overwrite the very
first source vector. In which case, I supposed a build_vector is better.
It seems to be safe but I don't know if it is correctly implemented or
if it is already done somewhere else. Please find attached the patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1144 bytes
Desc: not available
More information about the llvm-dev