[LLVMdev] Folding an insertelt chain
Ivan Llopard
ivanllopard at gmail.com
Fri Feb 17 00:50:38 PST 2012
Hello,
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.
Regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insertveltfold.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120217/cac3f349/attachment.bin>
More information about the llvm-dev
mailing list