summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-05-08 17:44:04 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-05-08 17:44:04 +0000
commit2360e51fd085fdf34d720abf8cf2009bc9f35242 (patch)
treeb87ac8c86e2f106a5851f299befb824ab7f4d8c0 /lib/Bitcode/Writer
parentf37151a2fde32fe05eaeb9e88d8738e61a0e2eb8 (diff)
downloadllvm-2360e51fd085fdf34d720abf8cf2009bc9f35242.tar.gz
llvm-2360e51fd085fdf34d720abf8cf2009bc9f35242.tar.bz2
llvm-2360e51fd085fdf34d720abf8cf2009bc9f35242.tar.xz
[X86] Add target specific combine rules to fold SSE2/AVX2 packed arithmetic shift intrinsics.
This patch teaches the backend how to combine packed SSE2/AVX2 arithmetic shift intrinsics. The rules are: - Always fold a packed arithmetic shift by zero to its first operand; - Convert a packed arithmetic shift intrinsic dag node into a ISD::SRA only if the shift count is known to be smaller than the vector element size. This patch also teaches to function 'getTargetVShiftByConstNode' how fold target specific vector shifts by zero. Added two new tests to verify that the DAGCombiner is able to fold sequences of SSE2/AVX2 packed arithmetic shift calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
0 files changed, 0 insertions, 0 deletions