[PATCH] D31527: InstSimplify: A shuffle of a splat is always the splat itself

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 10:12:36 PDT 2017


zvi updated this revision to Diff 93799.
zvi added a comment.

1. Following another enlightening comment from Simon, generalize to when the non-splat operand is not selected from.
2. Added the symmetrical case. Not relying on canonical form has a toll of duplication - will refactor in a follow-up patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D31527

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/shufflevector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31527.93799.patch
Type: text/x-patch
Size: 6081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170402/ab5a5a26/attachment.bin>


More information about the llvm-commits mailing list