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