From: Max Kazantsev Date: Wed, 29 Nov 2017 06:10:36 +0000 (+0000) Subject: [SCEV][NFC] Remove condition that can never happen due to check few lines above X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bee1015aa6461af22ef8b68cc2a075d615a3e01e;p=llvm [SCEV][NFC] Remove condition that can never happen due to check few lines above git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319293 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index bc227747538..25e3b0c3585 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -718,8 +718,6 @@ static int CompareSCEVComplexity( return (int)LNumOps - (int)RNumOps; for (unsigned i = 0; i != LNumOps; ++i) { - if (i >= RNumOps) - return 1; int X = CompareSCEVComplexity(EqCacheSCEV, LI, LC->getOperand(i), RC->getOperand(i), DT, Depth + 1); if (X != 0)