OSDN Git Service

[X86][SSE] Vector integer/float conversion memory folding (cvttps2dq / cvttpd2dq)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 6 Nov 2014 22:15:41 +0000 (22:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 6 Nov 2014 22:15:41 +0000 (22:15 +0000)
commitde3d50643ca43382c50f3fcc82d7c847cf424dbb
tree8c3c60f72cffabda1f569ffb7c264e02f0fbea54
parent112aabeeeb53b81b6c6e325e62961e22b1de8aab
[X86][SSE] Vector integer/float conversion memory folding (cvttps2dq / cvttpd2dq)

Fixed an issue with the (v)cvttps2dq and (v)cvttpd2dq instructions being incorrectly put in the 2 source operand folding tables instead of the 1 source operand and added the missing SSE/AVX versions.

Also added missing (v)cvtps2dq and (v)cvtpd2dq instructions to the folding tables.

Differential Revision: http://reviews.llvm.org/D6001

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221489 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/avx1-stack-reload-folding.ll