[PATCH] D31196: [InstCombine] fold insertelement of scalar constant into vector of constants

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 16:24:31 PDT 2017


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM.

(I guess this algorithm is theoretically quadratic over a long sequence of insertelements, but the constant factor is small enough that it shouldn't matter.)


https://reviews.llvm.org/D31196





More information about the llvm-commits mailing list