commit | 05bdcbb1ae48d1d1209173d137d11c35f46abff3 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Wed Mar 03 23:27:36 2010 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Wed Mar 03 23:27:36 2010 +0000 |
tree | f6cbab230093c72fab8b2a5a6643ca34b92b7417 | |
parent | cb721da4c64bb9a844cf5180647dc926a5fd5f24 [diff] |
Re-apply r97667 but with a little bit of thought put into the patch. This implements a special DenseMapInfo trait for DenseMap<MachineInstr*> that compare the value of the MachineInstr rather than the pointer value. Since the hashing and equality test functions ignore defs it's useful for doing CSE kind optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97678 91177308-0d34-0410-b5e6-96231b3b80d8