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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 15:14:37 PDT 2017


spatel updated this revision to Diff 92557.
spatel added a comment.

Patch updated as suggested by Eli:
Canonicalize an insert of a constant before an insert of a variable. There was already a test for this (but did nothing before), so I added a comment to explain.


https://reviews.llvm.org/D31196

Files:
  lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  test/Transforms/InstCombine/bitcast-bigendian.ll
  test/Transforms/InstCombine/insert-extract-shuffle.ll
  test/Transforms/InstCombine/vec_demanded_elts.ll
  test/Transforms/InstCombine/vector_insertelt_shuffle.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31196.92557.patch
Type: text/x-patch
Size: 8560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170321/06fdb01c/attachment.bin>


More information about the llvm-commits mailing list