projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8915e27
)
Minor code simplification.
author
Dan Gohman
<dan433584@gmail.com>
Tue, 12 Feb 2013 18:38:36 +0000
(18:38 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index 50c4714f8525a6425a6244b3e4375e7b88781a80..fae0a1f0e4e8d70053fdb0e10d8e5dc7c4a17a1e 100644
(file)
--- a/
lib/Transforms/Scalar/GVN.cpp
+++ b/
lib/Transforms/Scalar/GVN.cpp
@@
-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;
}