forked from OSchip/llvm-project
[X86] Rename WidenMaskArithmetic->PromoteMaskArithmetic since we usually use widen to refer to adding elements not making elements larger. NFC
llvm-svn: 347150
This commit is contained in:
parent
f56a57518d
commit
b03f80a21c
|
@ -35415,8 +35415,8 @@ static SDValue combineANDXORWithAllOnesIntoANDNP(SDNode *N, SelectionDAG &DAG) {
|
|||
// some of the transition sequences.
|
||||
// Even with AVX-512 this is still useful for removing casts around logical
|
||||
// operations on vXi1 mask types.
|
||||
static SDValue WidenMaskArithmetic(SDNode *N, SelectionDAG &DAG,
|
||||
const X86Subtarget &Subtarget) {
|
||||
static SDValue PromoteMaskArithmetic(SDNode *N, SelectionDAG &DAG,
|
||||
const X86Subtarget &Subtarget) {
|
||||
EVT VT = N->getValueType(0);
|
||||
assert(VT.isVector() && "Expected vector type");
|
||||
|
||||
|
@ -38862,7 +38862,7 @@ static SDValue combineSext(SDNode *N, SelectionDAG &DAG,
|
|||
return V;
|
||||
|
||||
if (VT.isVector())
|
||||
if (SDValue R = WidenMaskArithmetic(N, DAG, Subtarget))
|
||||
if (SDValue R = PromoteMaskArithmetic(N, DAG, Subtarget))
|
||||
return R;
|
||||
|
||||
if (SDValue NewAdd = promoteExtBeforeAdd(N, DAG, Subtarget))
|
||||
|
@ -39033,7 +39033,7 @@ static SDValue combineZext(SDNode *N, SelectionDAG &DAG,
|
|||
return V;
|
||||
|
||||
if (VT.isVector())
|
||||
if (SDValue R = WidenMaskArithmetic(N, DAG, Subtarget))
|
||||
if (SDValue R = PromoteMaskArithmetic(N, DAG, Subtarget))
|
||||
return R;
|
||||
|
||||
if (SDValue NewAdd = promoteExtBeforeAdd(N, DAG, Subtarget))
|
||||
|
|
Loading…
Reference in New Issue