Correct this inversion!
authorNick Lewycky <nicholas@mxc.ca>
Tue, 15 Jul 2008 03:47:44 +0000 (03:47 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 15 Jul 2008 03:47:44 +0000 (03:47 +0000)
I swear that didn't show up in svn diff...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53587 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 2f0493aa8821faf7f14e48f4adf8f2231a09fa09..a5100d0227783769b55f909fb408d37bc4115132 100644 (file)
@@ -2675,7 +2675,7 @@ bool ScalarEvolutionsImpl::executesAtLeastOnce(const Loop *L, bool isSigned,
     return false;
   }
 
-  if (PreCondLHS->getType()->isInteger()) return false;
+  if (!PreCondLHS->getType()->isInteger()) return false;
 
   return LHS == getSCEV(PreCondLHS) && RHS == getSCEV(PreCondRHS);
 }