[llvm] b5924a8 - [Hexagon] Fold another layer of single-use variable into assert. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 07:53:20 PDT 2020
Author: Benjamin Kramer
Date: 2020-08-27T16:52:34+02:00
New Revision: b5924a8e27536d19dd5c4d302db29fb6163d5faa
URL: https://github.com/llvm/llvm-project/commit/b5924a8e27536d19dd5c4d302db29fb6163d5faa
DIFF: https://github.com/llvm/llvm-project/commit/b5924a8e27536d19dd5c4d302db29fb6163d5faa.diff
LOG: [Hexagon] Fold another layer of single-use variable into assert. NFCI.
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
index f4b80d2f755c..254e5a89b1aa 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
@@ -1964,10 +1964,10 @@ HexagonTargetLowering::LowerHvxOperationWrapper(SDNode *N,
switch (Opc) {
case ISD::STORE: {
- SDValue Value = cast<StoreSDNode>(N)->getValue();
- assert(getPreferredHvxVectorAction(ty(Value)) ==
- TargetLoweringBase::TypeWidenVector &&
- "Not widening?");
+ assert(
+ getPreferredHvxVectorAction(ty(cast<StoreSDNode>(N)->getValue())) ==
+ TargetLoweringBase::TypeWidenVector &&
+ "Not widening?");
SDValue Store = WidenHvxStore(SDValue(N, 0), DAG);
Results.push_back(Store);
break;
More information about the llvm-commits
mailing list