diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-03-28 08:38:27 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-03-28 08:38:27 +0000 |
commit | afff33001a4fd3049d97cb40eea459d5c87ae5cc (patch) | |
tree | 795e1c7331514e6f5a7ce5e03405b011826c4bc4 /include/llvm/Transforms/Utils/ValueMapper.h | |
parent | 9fc5c83fb7b86862d4a29bf416842a4f1a0084d5 (diff) | |
download | external_llvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.zip external_llvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.tar.gz external_llvm-afff33001a4fd3049d97cb40eea459d5c87ae5cc.tar.bz2 |
Switch to WeakVHs in the value mapper, and aggressively prune dead basic
blocks in the function cloner. This removes the last case of trivially
dead code that I've been seeing in the wild getting inlined, analyzed,
re-inlined, optimized, only to be deleted. Nukes a FIXME from the
cleanup tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/ValueMapper.h')
-rw-r--r-- | include/llvm/Transforms/Utils/ValueMapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h index 0384656..8594707 100644 --- a/include/llvm/Transforms/Utils/ValueMapper.h +++ b/include/llvm/Transforms/Utils/ValueMapper.h @@ -20,7 +20,7 @@ namespace llvm { class Value; class Instruction; - typedef ValueMap<const Value *, TrackingVH<Value> > ValueToValueMapTy; + typedef ValueMap<const Value *, WeakVH> ValueToValueMapTy; /// ValueMapTypeRemapper - This is a class that can be implemented by clients /// to remap types when cloning constants and instructions. |