ClearArrayNode is used to initialize new allocation by widening stores to reduce number of instructions for small objects/arrays.
JDK-8370405 shows that mismatch between new array element type and stores may prevent EA elimination of array allocation.
ClearArrayNode could be created before EA. Idealizing it could also happened before. May be we should delay it until after last macro nodes elimination.
ClearArrayNode could be created before EA. Idealizing it could also happened before. May be we should delay it until after last macro nodes elimination.
- relates to
-
JDK-8370405 C2: mismatched store from MergeStores wrongly scalarized in allocation elimination
-
- Resolved
-