1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[Hexagon] Fold single-use variable into assert. NFCI.

This commit is contained in:
Benjamin Kramer 2020-08-27 16:40:20 +02:00
parent 6d03e1f153
commit f7ce567fa8

View File

@ -1965,8 +1965,9 @@ HexagonTargetLowering::LowerHvxOperationWrapper(SDNode *N,
switch (Opc) {
case ISD::STORE: {
SDValue Value = cast<StoreSDNode>(N)->getValue();
unsigned Action = getPreferredHvxVectorAction(ty(Value));
assert(Action == TargetLoweringBase::TypeWidenVector && "Not widening?");
assert(getPreferredHvxVectorAction(ty(Value)) ==
TargetLoweringBase::TypeWidenVector &&
"Not widening?");
SDValue Store = WidenHvxStore(SDValue(N, 0), DAG);
Results.push_back(Store);
break;