[X86] Also create+widen FMIN/FMAX nodes for v2f32.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Jan 2015 20:31:30 +0000 (20:31 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Jan 2015 20:31:30 +0000 (20:31 +0000)
commitcd5bbd8bad58562dff9979bbba73b840443fe9e5
treeb7c669f0af5b3ea8fc554ae688513a22789e6267
parentc88b471b9d172d96301c790592bfe19b6d5a9b5c
[X86] Also create+widen FMIN/FMAX nodes for v2f32.

This happens in the HINT benchmark, where the SLP-vectorizer created
v2f32 fcmp/select code.  The "correct" solution would have been to
teach the vectorizer cost model that v2f32 isn't legal (because really,
it isn't), but if we can vectorize we might as well do so.

We legalize these v2f32 FMIN/FMAX nodes by widening to v4f32 later on.
v3f32 were already widened to v4f32 by the generic unroll-and-build-vector
legalization.

rdar://15763436
Differential Revision: http://reviews.llvm.org/D6557

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225691 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/sse-minmax.ll