[SLP] remove dead code in reduction matching; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 15 Jan 2021 21:53:15 +0000 (16:53 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 15 Jan 2021 22:03:26 +0000 (17:03 -0500)
commitceb3cdccd0fb597659147e0f538fdee91414541e
treed0439b9f4e65a117941ce2ab0149d647c9ecd159
parent10ac9b29a4ca9e75bcbfa9576e3d8ee83cc9cd78
[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