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:
31ccd47
)
MemorySSAUpdater: Only add phis to insertedphis if we actually inserted them, not...
author
Daniel Berlin
<dberlin@dberlin.org>
Wed, 27 Sep 2017 05:35:19 +0000
(
05:35
+0000)
committer
Daniel Berlin
<dberlin@dberlin.org>
Wed, 27 Sep 2017 05:35:19 +0000
(
05:35
+0000)
llvm-svn: 314273
llvm/lib/Analysis/MemorySSAUpdater.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/MemorySSAUpdater.cpp
b/llvm/lib/Analysis/MemorySSAUpdater.cpp
index
1ff8447
..
f28f8bd
100644
(file)
--- a/
llvm/lib/Analysis/MemorySSAUpdater.cpp
+++ b/
llvm/lib/Analysis/MemorySSAUpdater.cpp
@@
-85,12
+85,11
@@
MemoryAccess *MemorySSAUpdater::getPreviousDefRecursive(BasicBlock *BB) {
unsigned i = 0;
for (auto *Pred : predecessors(BB))
Phi->addIncoming(PhiOps[i++], Pred);
+ InsertedPHIs.push_back(Phi);
}
-
Result = Phi;
}
- if (MemoryPhi *MP = dyn_cast<MemoryPhi>(Result))
- InsertedPHIs.push_back(MP);
+
// Set ourselves up for the next variable by resetting visited state.
VisitedBlocks.erase(BB);
return Result;