Skip to content

Commit 58a2c4e

Browse files
committed
[SLP][NFC]Check for equal opcode preliminary to meet weak strict order
requirement, NFC. This change does not affect functionality, just fixes the assertions in some standard c++ library implementations.
1 parent 6d91905 commit 58a2c4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15777,6 +15777,8 @@ static bool compareCmp(Value *V, Value *V2, TargetLibraryInfo &TLI,
1577715777
if (NodeI1 != NodeI2)
1577815778
return NodeI1->getDFSNumIn() < NodeI2->getDFSNumIn();
1577915779
}
15780+
if (I1->getOpcode() == I2->getOpcode())
15781+
continue;
1578015782
InstructionsState S = getSameOpcode({I1, I2}, TLI);
1578115783
if (S.getOpcode() && (IsCompatibility || !S.isAltShuffle()))
1578215784
continue;

0 commit comments

Comments
 (0)