8221592: C2 compilation failed with assert(!q->is_MergeMem())

Transform the original MergeMem after transforming the slices to get rid of MergeMem inputs.

Reviewed-by: kvn, neliasso
This commit is contained in:
Tobias Hartmann 2019-04-29 09:04:25 +02:00
parent 21d50973d1
commit 919b40be45

View File

@ -1028,6 +1028,8 @@ void Parse::do_exits() {
// transform each slice of the original memphi:
mms.set_memory(_gvn.transform(mms.memory()));
}
// Clean up input MergeMems created by transforming the slices
_gvn.transform(_exits.merged_memory());
if (tf()->range()->cnt() > TypeFunc::Parms) {
const Type* ret_type = tf()->range()->field_at(TypeFunc::Parms);