[llvm] a7e10e6 - Revert "[SLP][NFC]Check for equal opcode preliminary to meet weak strict order"

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 12:36:00 PST 2023


Author: Alexey Bataev
Date: 2023-12-18T12:35:52-08:00
New Revision: a7e10e66030099447919c3f61dbd3a3a41ba66f3

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

LOG: Revert "[SLP][NFC]Check for equal opcode preliminary to meet weak strict order"

This reverts commit 58a2c4e2f24ffce3966c3988d1a4ca7b04c52244 to fix the
issue detected by https://lab.llvm.org/buildbot/#/builders/233/builds/5424.

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 8c3ed0888e4631..9d799124074ca1 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -15777,8 +15777,6 @@ static bool compareCmp(Value *V, Value *V2, TargetLibraryInfo &TLI,
           if (NodeI1 != NodeI2)
             return NodeI1->getDFSNumIn() < NodeI2->getDFSNumIn();
         }
-        if (I1->getOpcode() == I2->getOpcode())
-          continue;
         InstructionsState S = getSameOpcode({I1, I2}, TLI);
         if (S.getOpcode() && (IsCompatibility || !S.isAltShuffle()))
           continue;


        


More information about the llvm-commits mailing list