Switch to WeakVHs in the value mapper, and aggressively prune dead basic
authorChandler Carruth <chandlerc@gmail.com>
Wed, 28 Mar 2012 08:38:27 +0000 (08:38 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 28 Mar 2012 08:38:27 +0000 (08:38 +0000)
commitafff33001a4fd3049d97cb40eea459d5c87ae5cc
tree795e1c7331514e6f5a7ce5e03405b011826c4bc4
parent9fc5c83fb7b86862d4a29bf416842a4f1a0084d5
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
include/llvm/Transforms/Utils/ValueMapper.h
lib/Transforms/Utils/CloneFunction.cpp
test/Transforms/Inline/inline_cleanup.ll