[llvm] [LegalizeTypes] Use VP_AND and VP_SHL/VP_SRA to promote operands fo VP arithmetic. (PR #92799)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 12:29:33 PDT 2024


================
@@ -1540,6 +1540,25 @@ SDValue SelectionDAG::getZeroExtendInReg(SDValue Op, const SDLoc &DL, EVT VT) {
   return getNode(ISD::AND, DL, OpVT, Op, getConstant(Imm, DL, OpVT));
 }
 
+SDValue SelectionDAG::getVPZeroExtendInReg(SDValue Op, SDValue Mask,
----------------
topperc wrote:

It went through separate review. I just hadn't rebased this patch.

https://github.com/llvm/llvm-project/pull/92799


More information about the llvm-commits mailing list