ClearArray::identity assumes that the count of words to clear is an int when in fact it is an intptr_t so it's a long in 64-bit. This inhibits elimination of useless ClearArrays. The fix is to use TypeX instead of TypeInt. Additionally in many cases it's possible to know at creation time there is nothing to do so we shouldn't bother to create them in those cases.
|