]> granicus.if.org Git - llvm/commitdiff
GVN-hoist: fix typo
authorSebastian Pop <sebpop@gmail.com>
Thu, 22 Sep 2016 15:08:09 +0000 (15:08 +0000)
committerSebastian Pop <sebpop@gmail.com>
Thu, 22 Sep 2016 15:08:09 +0000 (15:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282165 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVNHoist.cpp

index 023d1255064c0a56f16c4a7bd81eb6a0566ae351..8b2164c5071a6e54800e9d5c6957ded8c7f79830 100644 (file)
@@ -892,7 +892,7 @@ private:
           break;
 
         // Do not value number terminator instructions.
-        if (!isa<TerminatorInst>(&I1))
+        if (isa<TerminatorInst>(&I1))
           break;
 
         if (auto *Load = dyn_cast<LoadInst>(&I1))