[PATCH] D27992: [InstCombine] Canonicalize insert sequences that broadcast a value into a insert + shuffle

Michael Kuperstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 10:34:04 PST 2016


mkuper created this revision.
mkuper added reviewers: majnemer, spatel.
mkuper added a subscriber: llvm-commits.

A combine that canonicalizes a chain of inserts that broadcasts a value into a single insert + a splat shufflevector.

This fixes PR31286, since we actually do the right thing when the broadcast is canonical.
(See "good4"test)


https://reviews.llvm.org/D27992

Files:
  lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  test/Transforms/BBVectorize/X86/loop1.ll
  test/Transforms/BBVectorize/loop1.ll
  test/Transforms/BBVectorize/simple-int.ll
  test/Transforms/InstCombine/broadcast.ll
  test/Transforms/SLPVectorizer/X86/operandorder.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27992.82119.patch
Type: text/x-patch
Size: 13639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161220/cef6745e/attachment.bin>


More information about the llvm-commits mailing list