[llvm] r319293 - [SCEV][NFC] Remove condition that can never happen due to check few lines above
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 22:10:36 PST 2017
Author: mkazantsev
Date: Tue Nov 28 22:10:36 2017
New Revision: 319293
URL: http://llvm.org/viewvc/llvm-project?rev=319293&view=rev
Log:
[SCEV][NFC] Remove condition that can never happen due to check few lines above
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=319293&r1=319292&r2=319293&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Nov 28 22:10:36 2017
@@ -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)
More information about the llvm-commits
mailing list