Fix assertion failure in global-merge with unused ConstantExpr