projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92dd5cf
)
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)
llvm-svn: 174985
llvm/lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/GVN.cpp
b/llvm/lib/Transforms/Scalar/GVN.cpp
index
50c4714
..
fae0a1f
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/
llvm/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;
}