mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eff0c67b6a
commit
515f228ec3
@ -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.
|
||||
|
@ -869,7 +869,6 @@ void X86TargetLowering::resetOperationActions() {
|
||||
setOperationAction(ISD::TRUNCATE, VT, Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND, VT, Expand);
|
||||
setOperationAction(ISD::ZERO_EXTEND, VT, Expand);
|
||||
setOperationAction(ISD::ZERO_EXTEND_VECTOR_INREG, VT, Expand);
|
||||
setOperationAction(ISD::ANY_EXTEND, VT, Expand);
|
||||
setOperationAction(ISD::VSELECT, VT, Expand);
|
||||
setOperationAction(ISD::SELECT_CC, VT, Expand);
|
||||
|
Loading…
Reference in New Issue
Block a user