question: public static boolean useDoublesAsDef ( Operand u , Instruction s ) { for ( Enumeration < Operand > d = s . getDefs ( ) ; d . hasMoreElements ( ) ; ) { Operand def = d . nextElement ( ) ; if ( def != null ) { if ( def == u ) return true ; } } return false ; }
target:  Is the operand u, which is a use in instruction s, also a def in instruction s?  That is, is this operand defined as a DU operand in InstructionFormatList.dat. <p> TODO!!: This implementation is slow.  Think about adding some IR support for this functionality; possibly add methods like enumeratePureDefs(), enumerateImpureUses(), etc ..., and restructure the caller to avoid having to call this function.  Not going to put effort into this now, as the whole scratch register architecture has a questionable future.