<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJzFVNtunDAQ_RrzMmJlDGR3H3hIso1UqVWrqP0AAwM48drINknTr-_AQpdsor5UaiXLMPZcjs8cu7T1S_GtQ1BGK4PQSQ8SDPqANfSqx2k1dDJAi8GDR6ekVj-xZuk14wfGr9kVPwWz7U2NjRx0iJdIlh4qaaxR1RREHgBH-SNWAZ0MyhpPHgkHhy0ZsVfHXqvmhRaDG6iu7ePaPpvZZtvD2-gMaJkwzGCm-btprAuDkQH1C6FH8MEp04LtxzCgXaCQN2ivOFTWBKmMh-eOyoDvZYWTUXUgHYLsCSFxE-yUd5UwnFnspfdM3IK3oAJxhkd_4jB0ygONXjpPSaQ_s7hw-R4oOiZLP4yQL9g8n_uKXzDzKizha89Ltl-5TkSvnH_34K3Xmvc_188uGnSPvbNrBc3jZIoMsOosNfYWNkzclYPS9fhVhuajVi4m3iGOR57XWmNC_H8pCjEfI739OuL7MknEx1_HnjsihM4NxoIfSFKzfi6LLgkG82imomMQHwPROevGn0YqfdKhrGs4X0Li_VmFJbN_V-f_hIqVNF51d5qjukjrfbqXkRxCZ13xYB_Rxdh30eB00YXQT3dD3NFo6TxDuanskQytn5ZPTCJ6wCqQqbwfkO7cXS52uzzqCoFJlsgkr_k-SRFF02R5tct2zT6TKUcZaVmi9gXLb6hjo6aoXGUdjv3LD9HfY1CF4CJJhNhynmZJuhEcm7rBpsxFVlZJyTKOR-riZsyzsa6NXDGlLIfW06ZWPvjzJmlJtQZxhnyvntBt-XbGG1TQWHz-9PEeRtWd3-7lxZ5aA9R3JrYBSlzeoFJWj9EEvZhw_wJXePFS>52885</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            MLIR Pass pipeline serialization can't be parsed back
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir:core
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            River707
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          joker-eph
      </td>
    </tr>
</table>

<pre>
    The inline has a nested pipeline that gets serialized:
`inline{default-pipeline=canonicalize{  max-iterations=10 region-simplify=true top-down=true} max-iterations=4 }`

Unfortunately the string option for `default-pipeline` contains white spaces which are applied to the option for the inline pass, so it seems that this is parsed as:

`default-pipeline` => `canonicalize{`
`max-iterations` => `10`
`region-simplify` => `true`
`top-down` => `true}`
`max-iterations` => `4`

Repro:
```
$ echo | ./build/bin/mlir-opt --pass-pipeline="inline{default-pipeline=canonicalize{  max-iterations=10 region-simplify=true top-down=true} max-iterations=4 }"
<Pass-Options-Parser>: no such option region-simplify
<unknown>:0: error: failed to add `inline` with options `default-pipeline=canonicalize{  max-iterations=10 region-simplify=true top-down=true} max-iterations=4 `
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVNtunDAQ_RrzMmJlDAubBx6SbCNVatUoaj_AwABOvDayTdL06zuwbJdsoj62kmUYM5czZ46pbPNafu8RlNHKIPTSgwSDPmADgxpwPg29DNBh8ODRKanVL2xYes34nvFrlvNjMCtuGmzlqEN8imTpvpbGGlXPQeQBcJA_YxXQyaCs8eSRcHDYkRF7dRi0al_pMLiR6tohbuyLWWxW7N9HZ0DHhGEBM-8_TGtdGI0MqF8JPYIPTpkO7DCFAX0FCnmHNudQWxOkMh5eeioDfpA1zkbdg3QIciCExE2wc95VwnBmcZDeM3EL3oIKxBke_JHD0CsPtAbpPCWR_sziicuPQFGbLP00Qb5g89x3zi-YeROW8LXnJdtvXGeiV85_ZvDea8373-tnFwN6wMHZtYKWdTRFBlj3lgZ7Cxsm7qpR6WZ6KkP7QSsXE-8QxxPPa60xIf6_FIVY2khv7yd832aJ-Ph-mrkjQqhvMBb8SJJa9HNZ9JRgNE9mLjoF8SkQnbNuemml0kcdyqaB8yUk3l9UOGX2H-r8n1Cxksab6c571JRpc5VeySiooLH8-uXzA0x0nX86p1_NnBMIMBNFgApPl6eS9VM0Ol32IQzzRRJ3tDpqfqw2tT2QofXz6RGT4h6xDmQq70ekC3q3FbvdNurLtBJ50_Ic26QVeZ4VTY38CkW-a9JdkiaRlhVqX7LtDY13EiCVq63DadjbfaRKwUWSCFFwnmZJuhEc26bFttqKrKqTimUcDzSwzYRkY10XuXIGVY2dp49a-eDPH4kH1RnEpeCDekZX8GKpJsfQW1c-2id0MQ59NPdTzs38BqNp27M">