diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-03-03 23:55:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-03 23:55:49 +0000 |
commit | 2d23779e7deb9ca43c748208ef010a090b62bd01 (patch) | |
tree | f2dea64c3077225206d4f141cdbc3e8ecc99c8d9 /llvm/lib/CodeGen/PHIElimination.h | |
parent | cc3f325fa69e72709adbf54f13ad4696f4b50d83 (diff) | |
download | bcm5719-llvm-2d23779e7deb9ca43c748208ef010a090b62bd01.tar.gz bcm5719-llvm-2d23779e7deb9ca43c748208ef010a090b62bd01.zip |
Remove PHINodeTraits and use MachineInstrExpressionTrait instead.
llvm-svn: 97687
Diffstat (limited to 'llvm/lib/CodeGen/PHIElimination.h')
-rw-r--r-- | llvm/lib/CodeGen/PHIElimination.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.h b/llvm/lib/CodeGen/PHIElimination.h index ff4aa209185..7dedf0318a8 100644 --- a/llvm/lib/CodeGen/PHIElimination.h +++ b/llvm/lib/CodeGen/PHIElimination.h @@ -102,15 +102,9 @@ namespace llvm { // Defs of PHI sources which are implicit_def. SmallPtrSet<MachineInstr*, 4> ImpDefs; - // Lowered PHI nodes may be reused. We provide special DenseMap traits to - // match PHI nodes with identical arguments. - struct PHINodeTraits : public DenseMapInfo<MachineInstr*> { - static unsigned getHashValue(const MachineInstr *PtrVal); - static bool isEqual(const MachineInstr *LHS, const MachineInstr *RHS); - }; - // Map reusable lowered PHI node -> incoming join register. - typedef DenseMap<MachineInstr*, unsigned, PHINodeTraits> LoweredPHIMap; + typedef DenseMap<MachineInstr*, unsigned, + MachineInstrExpressionTrait> LoweredPHIMap; LoweredPHIMap LoweredPHIs; }; |