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)
llvm-svn: 282165

llvm/lib/Transforms/Scalar/GVNHoist.cpp

index 023d125..8b2164c 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))