Before promoting a malloc type, remove dead uses. This makes instcombine
authorChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 06:22:12 +0000 (06:22 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 06:22:12 +0000 (06:22 +0000)
commitb53c2382a9a56e7dd210d6798e97b7aee4d9ac5d
tree9d458922f0154a0e91018dc2b9fb0c99a8f4f066
parentb3f8397a3d92efa30203a0cd007d584f4503bef3
Before promoting a malloc type, remove dead uses.  This makes instcombine
more effective at promoting these allocations, catching them earlier in the
compile process.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23959 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp