llvm.org GIT mirror llvm / f83899a
[X86] Rename WidenMaskArithmetic->PromoteMaskArithmetic since we usually use widen to refer to adding elements not making elements larger. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347150 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 1 year, 4 days ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3541435414 // some of the transition sequences.
3541535415 // Even with AVX-512 this is still useful for removing casts around logical
3541635416 // operations on vXi1 mask types.
35417 static SDValue WidenMaskArithmetic(SDNode *N, SelectionDAG &DAG,
35418 const X86Subtarget &Subtarget) {
35417 static SDValue PromoteMaskArithmetic(SDNode *N, SelectionDAG &DAG,
35418 const X86Subtarget &Subtarget) {
3541935419 EVT VT = N->getValueType(0);
3542035420 assert(VT.isVector() && "Expected vector type");
3542135421
3886138861 return V;
3886238862
3886338863 if (VT.isVector())
38864 if (SDValue R = WidenMaskArithmetic(N, DAG, Subtarget))
38864 if (SDValue R = PromoteMaskArithmetic(N, DAG, Subtarget))
3886538865 return R;
3886638866
3886738867 if (SDValue NewAdd = promoteExtBeforeAdd(N, DAG, Subtarget))
3903239032 return V;
3903339033
3903439034 if (VT.isVector())
39035 if (SDValue R = WidenMaskArithmetic(N, DAG, Subtarget))
39035 if (SDValue R = PromoteMaskArithmetic(N, DAG, Subtarget))
3903639036 return R;
3903739037
3903839038 if (SDValue NewAdd = promoteExtBeforeAdd(N, DAG, Subtarget))