Minor code simplification.
authorDan Gohman <dan433584@gmail.com>
Tue, 12 Feb 2013 18:38:36 +0000 (18:38 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 12 Feb 2013 18:38:36 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174985 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVN.cpp

index 50c4714f8525a6425a6244b3e4375e7b88781a80..fae0a1f0e4e8d70053fdb0e10d8e5dc7c4a17a1e 100644 (file)
@@ -2445,7 +2445,7 @@ bool GVN::performPRE(Function &F) {
         if (P == CurrentBlock) {
           NumWithout = 2;
           break;
-        } else if (!DT->dominates(&F.getEntryBlock(), P))  {
+        } else if (!DT->isReachableFromEntry(P))  {
           NumWithout = 2;
           break;
         }