Minor code simplification.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2013-02-12 18:38:36 +00:00
parent 8915e27704
commit 67cd669f7b

View 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;
}