[TargetLowering] Remove ISD::ANY_EXTEND/ANY_EXTEND_VECTOR_INREG opcodes from Simplify...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 5 Dec 2018 12:20:05 +0000 (12:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 5 Dec 2018 12:20:05 +0000 (12:20 +0000)
These have no test coverage and the KnownZero flags can't be guaranteed unlike SIGN/ZERO_EXTEND cases.

llvm-svn: 348361

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 6654a02..b45453b 100644 (file)
@@ -1737,7 +1737,6 @@ bool TargetLowering::SimplifyDemandedVectorElts(
     }
     break;
   }
-  case ISD::ANY_EXTEND_VECTOR_INREG:
   case ISD::SIGN_EXTEND_VECTOR_INREG:
   case ISD::ZERO_EXTEND_VECTOR_INREG: {
     APInt SrcUndef, SrcZero;
@@ -1770,7 +1769,6 @@ bool TargetLowering::SimplifyDemandedVectorElts(
     break;
   }
   case ISD::TRUNCATE:
-  case ISD::ANY_EXTEND:
   case ISD::SIGN_EXTEND:
   case ISD::ZERO_EXTEND:
     if (SimplifyDemandedVectorElts(Op.getOperand(0), DemandedElts, KnownUndef,