summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-07-09 22:53:04 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-07-09 22:53:04 +0000
commitd3561f6fecd32a4fd52d93273b4a14b69c3682b8 (patch)
tree2b712411254bd3210cbb5bc306951c10570bc4ae /llvm/lib/CodeGen
parent8a4ee50e589f6e0787f8cb69812cd4a5d360177a (diff)
downloadbcm5719-llvm-d3561f6fecd32a4fd52d93273b4a14b69c3682b8.tar.gz
bcm5719-llvm-d3561f6fecd32a4fd52d93273b4a14b69c3682b8.zip
[SDAG] Make the new zext-vector-inreg node default to expand so targets
don't need to set it manually. This is based on feedback from Tom who pointed out that if every target needs to handle this we need to reach out to those maintainers. In fact, it doesn't make sense to duplicate everything when anything other than expand seems unlikely at this stage. llvm-svn: 212661
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index cc4445fc4c0..71c609441bb 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -743,8 +743,11 @@ void TargetLoweringBase::initActions() {
// These operations default to expand for vector types.
if (VT >= MVT::FIRST_VECTOR_VALUETYPE &&
- VT <= MVT::LAST_VECTOR_VALUETYPE)
+ VT <= MVT::LAST_VECTOR_VALUETYPE) {
setOperationAction(ISD::FCOPYSIGN, (MVT::SimpleValueType)VT, Expand);
+ setOperationAction(ISD::ZERO_EXTEND_VECTOR_INREG,
+ (MVT::SimpleValueType)VT, Expand);
+ }
}
// Most targets ignore the @llvm.prefetch intrinsic.
OpenPOWER on IntegriCloud