summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIISelLowering.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-08-09 01:06:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-08-09 01:06:56 +0000
commitc0503db9e2a834bfcba8ec079f2f927adfd65319 (patch)
treea7faac36dbe01b108d95be6588529cc6d60314f1 /llvm/lib/Target/R600/SIISelLowering.cpp
parent4f575f7aaf2ccf93989c82520ad082165050fd5e (diff)
downloadbcm5719-llvm-c0503db9e2a834bfcba8ec079f2f927adfd65319.tar.gz
bcm5719-llvm-c0503db9e2a834bfcba8ec079f2f927adfd65319.zip
R600/SI: Custom lower CONCAT_VECTORS
This will lower them using register copies rather than loads and stores to the stack. llvm-svn: 215270
Diffstat (limited to 'llvm/lib/Target/R600/SIISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/SIISelLowering.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp
index f7717dacfc6..f9be144461a 100644
--- a/llvm/lib/Target/R600/SIISelLowering.cpp
+++ b/llvm/lib/Target/R600/SIISelLowering.cpp
@@ -196,10 +196,12 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) :
case ISD::BITCAST:
case ISD::EXTRACT_VECTOR_ELT:
case ISD::INSERT_VECTOR_ELT:
- case ISD::CONCAT_VECTORS:
case ISD::INSERT_SUBVECTOR:
case ISD::EXTRACT_SUBVECTOR:
break;
+ case ISD::CONCAT_VECTORS:
+ setOperationAction(Op, VT, Custom);
+ break;
default:
setOperationAction(Op, VT, Expand);
break;
OpenPOWER on IntegriCloud