[TargetLowering][PowerPC] Don't unroll vector CLMUL when MUL is not supported. (#184238)

We can use the bittest lowering instead.
This commit is contained in:
Craig Topper 2026-03-03 17:25:54 -08:00 committed by GitHub
parent 1c434928d2
commit 98c46261d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2338 additions and 2213 deletions

View File

@ -8464,10 +8464,6 @@ SDValue TargetLowering::expandCLMUL(SDNode *Node, SelectionDAG &DAG) const {
unsigned BW = VT.getScalarSizeInBits();
unsigned Opcode = Node->getOpcode();
// Scalarize if the vector multiplication is unlikely to work.
if (VT.isVector() && !isOperationLegalOrCustom(ISD::MUL, VT))
return DAG.UnrollVectorOp(Node);
switch (Opcode) {
case ISD::CLMUL: {
// NOTE: If you change this expansion, please update the cost model

File diff suppressed because it is too large Load Diff