mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user