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:
67c2d18
)
another fastpath
author
Chris Lattner
<sabre@nondot.org>
Fri, 18 Mar 2005 23:18:20 +0000
(23:18 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 18 Mar 2005 23:18:20 +0000
(23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20674
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/Local.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/Local.cpp
b/lib/Analysis/DataStructure/Local.cpp
index e2e40f76d2a993227dc27414107d2a6ef9bbdbcc..9cb899cb374d014f347cc421ee9ced52c0b6abba 100644
(file)
--- a/
lib/Analysis/DataStructure/Local.cpp
+++ b/
lib/Analysis/DataStructure/Local.cpp
@@
-349,7
+349,8
@@
void GraphBuilder::visitGetElementPtrInst(User &GEP) {
// If all of the indices are zero, the result points to the operand without
// applying the type.
- if (AllZeros) {
+ if (AllZeros || (!Value.isNull() &&
+ Value.getNode()->isNodeCompletelyFolded())) {
setDestTo(GEP, Value);
return;
}