[llvm-commits] [llvm] r97678 - in /llvm/trunk: include/llvm/CodeGen/MachineInstr.h lib/CodeGen/MachineCSE.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Mar 3 15:34:16 PST 2010
On Mar 3, 2010, at 3:27 PM, Evan Cheng wrote:
> Author: evancheng
> Date: Wed Mar 3 17:27:36 2010
> New Revision: 97678
>
> URL: http://llvm.org/viewvc/llvm-project?rev=97678&view=rev
> Log:
> 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.
Thanks,
I think MachineInstrExpressionTrait is a suitable replacement for PHINodeTraits as well.
/jakob
More information about the llvm-commits
mailing list