[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:
parent
1c434928d2
commit
98c46261d9
@ -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
Loading…
x
Reference in New Issue
Block a user