[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)
commit231ed70f86ce60e611ca9f57e2bd2b138fc19d12
treece52b508a01d8f1aef92f15fecc9c3344627a5f0
parent9029773ceef9afba5f6fed90099667c77e674238
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247504 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/x86-f16c.ll [new file with mode: 0644]