From ceb3cdccd0fb597659147e0f538fdee91414541e Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 15 Jan 2021 16:53:15 -0500 Subject: [PATCH] [SLP] remove dead code in reduction matching; NFC To get into this block we had: !A || B || C and we checked C in the first 'if' clause leaving !A || B. But the 2nd 'if' is checking: A && !B --> !(!A || B) --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index e1befc4..cf7c05e 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -6877,12 +6877,6 @@ public: markExtraArg(Stack.back(), I); continue; } - } else if (RdxLeafVal && RdxLeafVal != EdgeOpData) { - // Make sure that the opcodes of the operations that we are going to - // reduce match. - // I is an extra argument for TreeN (its parent operation). - markExtraArg(Stack.back(), I); - continue; } else if (!RdxLeafVal) { RdxLeafVal = EdgeOpData; } -- 2.7.4