summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ValueHandle.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-30 23:03:27 +0000
committerChris Lattner <sabre@nondot.org>2010-03-30 23:03:27 +0000
commitec39f095f5abaf1ec90d7c6c46454032cda36e1c (patch)
tree2d3a0f5e859ac6ba680bb055b87a6e7191190097 /include/llvm/Support/ValueHandle.h
parentbfcd61b907e1ec7e6b21fafa7c362e3002ddf3c1 (diff)
downloadllvm-ec39f095f5abaf1ec90d7c6c46454032cda36e1c.tar.gz
llvm-ec39f095f5abaf1ec90d7c6c46454032cda36e1c.tar.bz2
llvm-ec39f095f5abaf1ec90d7c6c46454032cda36e1c.tar.xz
Fix a major source of compile-time slowness at -O0 -g by optimizing
the storage of !dbg metadata kinds in the instruction themselves. The on-the-side hash table works great for metadata that not-all instructions get, or for metadata that only exists when optimizing. But when compile-time is everything, it isn't great. I'm not super thrilled with the fact that this plops a TrackingVH in Instruction, because it grows it by 3 words. I'm investigating alternatives, but this should be a step in the right direction in any case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ValueHandle.h')
-rw-r--r--include/llvm/Support/ValueHandle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h
index 82c3caeb3a..0e61d093b9 100644
--- a/include/llvm/Support/ValueHandle.h
+++ b/include/llvm/Support/ValueHandle.h
@@ -302,7 +302,7 @@ class TrackingVH : public ValueHandleBase {
ValueTy *getValPtr() const {
CheckValidity();
- return static_cast<ValueTy*>(ValueHandleBase::getValPtr());
+ return (ValueTy*)ValueHandleBase::getValPtr();
}
void setValPtr(ValueTy *P) {
CheckValidity();