[LLVMdev] Folding an insertelt chain
clattner at apple.com
Fri Feb 17 01:19:35 PST 2012
On Feb 17, 2012, at 12:50 AM, Ivan Llopard wrote:
> 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.
This needs a testcase.
More information about the llvm-dev