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:
93eed63
)
[MemorySSA] Update phi map with replacement value.
author
Alina Sbirlea
<asbirlea@google.com>
Tue, 1 Sep 2020 18:56:17 +0000
(11:56 -0700)
committer
Alina Sbirlea
<asbirlea@google.com>
Tue, 1 Sep 2020 18:56:40 +0000
(11:56 -0700)
llvm/lib/Analysis/MemorySSAUpdater.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/MemorySSAUpdater.cpp
b/llvm/lib/Analysis/MemorySSAUpdater.cpp
index
671d9e6
..
19f434f
100644
(file)
--- a/
llvm/lib/Analysis/MemorySSAUpdater.cpp
+++ b/
llvm/lib/Analysis/MemorySSAUpdater.cpp
@@
-713,8
+713,8
@@
void MemorySSAUpdater::updateForClonedLoop(const LoopBlocksRPO &LoopBlocks,
NewPhi->addIncoming(IncPhi, IncBB);
}
}
- if (onlySingleValue(NewPhi)) {
- MPhiMap[Phi] =
nullptr
;
+ if (
auto *SingleAccess =
onlySingleValue(NewPhi)) {
+ MPhiMap[Phi] =
SingleAccess
;
removeMemoryAccess(NewPhi);
}
};