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:
00cb673
)
Micro-optimize DerivedType::dropAllTypeUses.
author
Dan Gohman
<gohman@apple.com>
Sun, 27 Sep 2009 15:32:21 +0000
(15:32 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sun, 27 Sep 2009 15:32:21 +0000
(15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82900
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index da53800ad7e841583df2b3e2fdea31acc1c99334..820789d89e74b11353d991d08fcefd662ffa7a1b 100644
(file)
--- a/
lib/VMCore/Type.cpp
+++ b/
lib/VMCore/Type.cpp
@@
-498,8
+498,9
@@
void DerivedType::dropAllTypeUses() {
// pick so long as it doesn't point back to this type. We choose something
// concrete to avoid overhead for adding to AbstractTypeUser lists and
// stuff.
+ const Type *ConcreteTy = Type::getInt32Ty(getContext());
for (unsigned i = 1, e = NumContainedTys; i != e; ++i)
- ContainedTys[i] =
Type::getInt32Ty(getContext())
;
+ ContainedTys[i] =
ConcreteTy
;
}
}