[InstCombine] CVTPH2PS Vector Demanded Elements + Constant Folding
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Sep 2015 13:39:53 +0000 (13:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 12 Sep 2015 13:39:53 +0000 (13:39 +0000)
commit20c607b1100ef3eb7ec66b6f5c049a1060ee8762
tree7affc7c93ccc5df0c1930aacae269e599aac86d4
parentbc9c327f3f43ad7b34405a3d6315c9eb8bfe0b2e
[InstCombine] CVTPH2PS Vector Demanded Elements + Constant Folding

Improved InstCombine support for CVTPH2PS (F16C half 2 float conversion):

<4 x float> @llvm.x86.vcvtph2ps.128(<8 x i16>) - only uses the bottom 4 i16 elements for the conversion.

Added constant folding support.

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

llvm-svn: 247504
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/x86-f16c.ll [new file with mode: 0644]