Add ARM-specific DAG combining to cast i64 vector element load/stores to f64.
authorBob Wilson <bob.wilson@apple.com>
Tue, 21 Dec 2010 06:43:19 +0000 (06:43 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 21 Dec 2010 06:43:19 +0000 (06:43 +0000)
commit316009054ef25fd12f95d97ac9282dede2392e1a
tree3a1e918c24708a60e0ed4ce9efe055065673b09e
parent62b83b62f377ac248038672015dc65970327f786
Add ARM-specific DAG combining to cast i64 vector element load/stores to f64.
Type legalization splits up i64 values into pairs of i32 values, which leads
to poor quality code when inserting or extracting i64 vector elements.
If the vector element is loaded or stored, it can be treated as an f64 value
and loaded or stored directly from a VPR register.  Use the pre-legalization
DAG combiner to cast those vector elements to f64 types so that the type
legalizer won't mess them up.  Radar 8755338.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122319 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/vector-DAGCombine.ll