forked from OSchip/llvm-project
Remove some local variables in place of just querying for them
in the couple of asserts. llvm-svn: 226917
This commit is contained in:
parent
76c9e0986c
commit
a1c6e0c8ce
|
@ -24807,7 +24807,6 @@ static SDValue PerformMLOADCombine(SDNode *N, SelectionDAG &DAG,
|
|||
return SDValue();
|
||||
|
||||
EVT VT = Mld->getValueType(0);
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
unsigned NumElems = VT.getVectorNumElements();
|
||||
EVT LdVT = Mld->getMemoryVT();
|
||||
SDLoc dl(Mld);
|
||||
|
@ -24835,8 +24834,8 @@ static SDValue PerformMLOADCombine(SDNode *N, SelectionDAG &DAG,
|
|||
ShuffleVec[i] = i * SizeRatio;
|
||||
|
||||
// Can't shuffle using an illegal type.
|
||||
assert (TLI.isTypeLegal(WideVecVT) && "WideVecVT should be legal");
|
||||
(void)TLI;
|
||||
assert (DAG.getTargetLoweringInfo().isTypeLegal(WideVecVT)
|
||||
&& "WideVecVT should be legal");
|
||||
WideSrc0 = DAG.getVectorShuffle(WideVecVT, dl, WideSrc0,
|
||||
DAG.getUNDEF(WideVecVT), &ShuffleVec[0]);
|
||||
}
|
||||
|
@ -24888,7 +24887,6 @@ static SDValue PerformMSTORECombine(SDNode *N, SelectionDAG &DAG,
|
|||
return SDValue();
|
||||
|
||||
EVT VT = Mst->getValue().getValueType();
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
unsigned NumElems = VT.getVectorNumElements();
|
||||
EVT StVT = Mst->getMemoryVT();
|
||||
SDLoc dl(Mst);
|
||||
|
@ -24920,8 +24918,8 @@ static SDValue PerformMSTORECombine(SDNode *N, SelectionDAG &DAG,
|
|||
ShuffleVec[i] = i * SizeRatio;
|
||||
|
||||
// Can't shuffle using an illegal type.
|
||||
assert (TLI.isTypeLegal(WideVecVT) && "WideVecVT should be legal");
|
||||
(void)TLI;
|
||||
assert (DAG.getTargetLoweringInfo().isTypeLegal(WideVecVT)
|
||||
&& "WideVecVT should be legal");
|
||||
|
||||
SDValue TruncatedVal = DAG.getVectorShuffle(WideVecVT, dl, WideVec,
|
||||
DAG.getUNDEF(WideVecVT),
|
||||
|
|
Loading…
Reference in New Issue