]> granicus.if.org Git - llvm/commit
[X86] Add demanded elts support for the inputs to pclmul intrinsic
authorCraig Topper <craig.topper@gmail.com>
Thu, 26 Jan 2017 05:17:13 +0000 (05:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 26 Jan 2017 05:17:13 +0000 (05:17 +0000)
commitfafe30250c533673c306c4601d079c419620ece2
tree0a5331d00d2ac07effd878531fd715006caff01a
parentc41f271a875f84bd8e1fe1384f905fce60733835
[X86] Add demanded elts support for the inputs to pclmul intrinsic

This intrinsic uses bit 0 and bit 4 of an immediate argument to determine which bits of its inputs to read. This patch uses this information to simplify the demanded elements of the input vectors.

Differential Revision: https://reviews.llvm.org/D28979

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293151 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp