[llvm] 97e6f92 - Fix GCC Wparentheses warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 8 05:35:08 PDT 2024
Author: Simon Pilgrim
Date: 2024-09-08T13:34:34+01:00
New Revision: 97e6f92d3181f1bb22e848b23eac801ab5d63575
URL: https://github.com/llvm/llvm-project/commit/97e6f92d3181f1bb22e848b23eac801ab5d63575
DIFF: https://github.com/llvm/llvm-project/commit/97e6f92d3181f1bb22e848b23eac801ab5d63575.diff
LOG: Fix GCC Wparentheses warning. NFC.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index d059b576380127..dd4d42b68b5661 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6605,10 +6605,10 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I,
if (canTruncateToMinimalBitwidth(I, VF)) {
Instruction *Op0AsInstruction = dyn_cast<Instruction>(I->getOperand(0));
(void)Op0AsInstruction;
- assert(!canTruncateToMinimalBitwidth(Op0AsInstruction, VF) ||
- MinBWs[I] == MinBWs[Op0AsInstruction] &&
- "if both the operand and the compare are marked for "
- "truncation, they must have the same bitwidth");
+ assert((!canTruncateToMinimalBitwidth(Op0AsInstruction, VF) ||
+ MinBWs[I] == MinBWs[Op0AsInstruction]) &&
+ "if both the operand and the compare are marked for "
+ "truncation, they must have the same bitwidth");
ValTy = IntegerType::get(ValTy->getContext(), MinBWs[I]);
}
More information about the llvm-commits
mailing list