From a7e10e66030099447919c3f61dbd3a3a41ba66f3 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Mon, 18 Dec 2023 12:11:55 -0800 Subject: 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. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 8c3ed08..9d79912 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; -- cgit v1.1