OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dcd2f1
)
Cache DT[*SI] lookup.
author
Devang Patel
<dpatel@apple.com>
Wed, 18 Apr 2007 01:19:55 +0000
(
01:19
+0000)
committer
Devang Patel
<dpatel@apple.com>
Wed, 18 Apr 2007 01:19:55 +0000
(
01:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36239
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/PostDominators.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/PostDominators.cpp
b/lib/Analysis/PostDominators.cpp
index
b239596
..
add25fd
100644
(file)
--- a/
lib/Analysis/PostDominators.cpp
+++ b/
lib/Analysis/PostDominators.cpp
@@
-282,10
+282,12
@@
PostDominanceFrontier::calculate(const PostDominatorTree &DT,
if (BB)
for (pred_iterator SI = pred_begin(BB), SE = pred_end(BB);
- SI != SE; ++SI)
+ SI != SE; ++SI)
{
// Does Node immediately dominate this predecessor?
- if (DT[*SI] && DT[*SI]->getIDom() != Node)
+ DominatorTree::Node *SINode = DT[*SI];
+ if (SINode && SINode->getIDom() != Node)
S.insert(*SI);
+ }
// At this point, S is DFlocal. Now we union in DFup's of our children...
// Loop through and visit the nodes that Node immediately dominates (Node's