summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-18 05:10:51 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-18 05:10:51 +0000
commit1425e10cc6f8306cba01589c9e3f8459fa7e2ffe (patch)
treeb9ddc1b42629783c778567dc61201164f4f77ce0 /clang/lib/Frontend/FrontendActions.cpp
parentd52990c71b6f83c9beeba4efc9103412e0416ba9 (diff)
downloadbcm5719-llvm-1425e10cc6f8306cba01589c9e3f8459fa7e2ffe.tar.gz
bcm5719-llvm-1425e10cc6f8306cba01589c9e3f8459fa7e2ffe.zip
[X86] Generate v2f64 X86ISD::UNPCKL/UNPCKH instead of X86ISD::MOVLHPS/MOVHLPS for unary v2f64 {0,0} and {1,1} shuffles with SSE2.
I'm trying to restrict the MOVLHPS/MOVHLPS ISD nodes to SSE1 only. With SSE2 we can use unpcks. I believe this will allow some patterns to be cleaned up to require fewer bitcasts. I've put in an odd isel hack to still select MOVHLPS instruction from the unpckh node to avoid changing tests and because movhlps is a shorter encoding. Ideally we'd do execution domain switching on this, but the operands are in the wrong order and are tied. We might be able to try a commute in the domain switching using custom code. We already support domain switching for UNPCKLPD and MOVLHPS. llvm-svn: 337348
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud