[llvm] dd05933 - Revert "[Vectorize] Fix a warning"

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 25 01:38:55 PDT 2025


Author: Martin Storsjö
Date: 2025-03-25T10:21:05+02:00
New Revision: dd059338a2ebdc68e964bbf4ea62f99f13329e30

URL: https://github.com/llvm/llvm-project/commit/dd059338a2ebdc68e964bbf4ea62f99f13329e30
DIFF: https://github.com/llvm/llvm-project/commit/dd059338a2ebdc68e964bbf4ea62f99f13329e30.diff

LOG: Revert "[Vectorize] Fix a warning"

This reverts commit 4c68061254c896214b7ad5ab807ac4ba11517812.

Reverting as part of a revert of a preceding commit.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 84ed1c11df9e0..72e18be9fe71e 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -876,7 +876,6 @@ class BinOpSameOpcodeHelper {
   isBinOpWithConstantInt(Instruction *I) {
     unsigned Opcode = I->getOpcode();
     assert(binary_search(SupportedOp, Opcode) && "Unsupported opcode.");
-    (void)SupportedOp;
     auto *BinOp = cast<BinaryOperator>(I);
     if (auto *CI = dyn_cast<ConstantInt>(BinOp->getOperand(1)))
       return {CI, 1};


        


More information about the llvm-commits mailing list