[llvm] 8805e5d - [Hexagon] Fix -Wunused-variable in non-assertion builds after f6e7ad56040ee8531be3375e04312d30700a58b2
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 14:14:53 PDT 2022
Author: Fangrui Song
Date: 2022-09-21T14:14:45-07:00
New Revision: 8805e5d1b7be72b007448477aa55cc6b104b4842
URL: https://github.com/llvm/llvm-project/commit/8805e5d1b7be72b007448477aa55cc6b104b4842
DIFF: https://github.com/llvm/llvm-project/commit/8805e5d1b7be72b007448477aa55cc6b104b4842.diff
LOG: [Hexagon] Fix -Wunused-variable in non-assertion builds after f6e7ad56040ee8531be3375e04312d30700a58b2
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
old mode 100755
new mode 100644
index 625ec9e599a7..0415db7bca65
--- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
@@ -1459,8 +1459,7 @@ HexagonTargetLowering::resizeToWidth(SDValue VecV, MVT ResTy, bool Signed,
SDValue
HexagonTargetLowering::extractSubvector(SDValue Vec, MVT SubTy, unsigned SubIdx,
SelectionDAG &DAG) const {
- MVT VecTy = ty(Vec);
- assert(VecTy.getSizeInBits() % SubTy.getSizeInBits() == 0);
+ assert(ty(Vec).getSizeInBits() % SubTy.getSizeInBits() == 0);
const SDLoc &dl(Vec);
unsigned ElemIdx = SubIdx * SubTy.getVectorNumElements();
@@ -2588,8 +2587,8 @@ HexagonTargetLowering::CreateTLWrapper(SDValue Op, SelectionDAG &DAG) const {
SDValue
HexagonTargetLowering::RemoveTLWrapper(SDValue Op, SelectionDAG &DAG) const {
- unsigned TLOpc = Op.getOpcode();
- assert(TLOpc == HexagonISD::TL_EXTEND || TLOpc == HexagonISD::TL_TRUNCATE);
+ assert(Op.getOpcode() == HexagonISD::TL_EXTEND ||
+ Op.getOpcode() == HexagonISD::TL_TRUNCATE);
unsigned Opc = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
return DAG.getNode(Opc, SDLoc(Op), ty(Op), Op.getOperand(0));
}
More information about the llvm-commits
mailing list