forked from OSchip/llvm-project
[SDAG] fix unused variable warning and unneeded indirection; NFC
llvm-svn: 360640
This commit is contained in:
parent
3a13d970aa
commit
99d6420a82
|
@ -16173,7 +16173,7 @@ static SDValue scalarizeExtractedBinop(SDNode *ExtElt, SelectionDAG &DAG,
|
||||||
SDValue Vec = ExtElt->getOperand(0);
|
SDValue Vec = ExtElt->getOperand(0);
|
||||||
SDValue Index = ExtElt->getOperand(1);
|
SDValue Index = ExtElt->getOperand(1);
|
||||||
auto *IndexC = dyn_cast<ConstantSDNode>(Index);
|
auto *IndexC = dyn_cast<ConstantSDNode>(Index);
|
||||||
if (!IndexC || !TLI.isBinOp(Vec->getOpcode()) || !Vec.hasOneUse())
|
if (!IndexC || !TLI.isBinOp(Vec.getOpcode()) || !Vec.hasOneUse())
|
||||||
return SDValue();
|
return SDValue();
|
||||||
|
|
||||||
// Targets may want to avoid this to prevent an expensive register transfer.
|
// Targets may want to avoid this to prevent an expensive register transfer.
|
||||||
|
|
|
@ -1747,9 +1747,9 @@ bool TargetLowering::SimplifyDemandedVectorElts(SDValue Op,
|
||||||
static APInt getKnownUndefForVectorBinop(SDValue BO, SelectionDAG &DAG,
|
static APInt getKnownUndefForVectorBinop(SDValue BO, SelectionDAG &DAG,
|
||||||
const APInt &UndefOp0,
|
const APInt &UndefOp0,
|
||||||
const APInt &UndefOp1) {
|
const APInt &UndefOp1) {
|
||||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
|
||||||
EVT VT = BO.getValueType();
|
EVT VT = BO.getValueType();
|
||||||
assert(TLI.isBinOp(BO.getOpcode()) && VT.isVector() && "Vector binop only");
|
assert(DAG.getTargetLoweringInfo().isBinOp(BO.getOpcode()) && VT.isVector() &&
|
||||||
|
"Vector binop only");
|
||||||
|
|
||||||
EVT EltVT = VT.getVectorElementType();
|
EVT EltVT = VT.getVectorElementType();
|
||||||
unsigned NumElts = VT.getVectorNumElements();
|
unsigned NumElts = VT.getVectorNumElements();
|
||||||
|
|
Loading…
Reference in New Issue