| commit | 0b59103a73bf982deeebf943daa1846acf709e1f | [log] [tgz] |
|---|---|---|
| author | Sanjay Patel <spatel@rotateright.com> | Mon Jul 08 16:26:48 2019 +0000 |
| committer | Sanjay Patel <spatel@rotateright.com> | Mon Jul 08 16:26:48 2019 +0000 |
| tree | 455cfa23cbc230d68588f3c8a7ba3d3df2cde40f | |
| parent | e6ba22542f28396aa13bd37b42419e2028288a7f [diff] |
[InstCombine] canonicalize insert+splat to/from element 0 of vector We recognize a splat from element 0 in (VectorUtils) llvm::getSplatValue() and also in ShuffleVectorInst::isZeroEltSplatMask(), so this converts to that form for better matching. The backend generically turns these patterns into build_vector, so there should be no codegen difference. llvm-svn: 365342