<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/155544>155544</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir-reduce] inconsistent command line behavior
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vfdff
</td>
</tr>
</table>
<pre>
* When I try mlir-reduce to reduce my mlir file, it failed as unregistered-dialect. and the tool suggests me use option **-allow-unregistered-dialect** to work aound.
```
mlir-reduce test.mlir -reduction-tree='traversal-mode=0 test=test.sh'
loc("test.mlir":22:45): error: #"hacc"<"aicore_kind<Ascend310P>"> : 'none' attribute created with unregistered dialect. If this is intended, please call allowUnregisteredDialects() on the MLIRContext, or use -allow-unregistered-dialect with the MLIR opt tool used
```
* Then I try to add the above option -allow-unregistered-dialect, it failed with Unknown command line argument '-allow-unregistered-dialect'
```
mlir-reduce: Unknown command line argument '-allow-unregistered-dialect'. Try: 'mlir-reduce --help'
mlir-reduce: Did you mean '--allocate-arm-sme-tiles'?
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykVNGOqzYU_BrzcgSCY1g2DzzQzY20UitV1b3qY2XwAdw1dmSbpPn7yibdm71q96WSlSDsOTPMjCy8V7Mh6ljzE2uOmdjCYl13meQ0ZYOVt45hD78vZOAVgrvBqpXLHcltJAgW7k_rvgGT0sTwBVSASShNEoSHzTialQ_kSOZSCU1jKEAYCWGJQ6wGv80z-eBhJdg8gT0HZQ0w7Bn2udDaXvN_G7MfiEKu1r2BsJuRBSt79lTeV9l_UEw-FEnp_iay5MERMX5k2AYnLuS80PlqZXxXJgTjxwT0C8OWlb22I8Nnhvg-jiEy3qefumF4YLwHcs66-MCQM8RFjGM69sIQhRqtoz_elJGMv_R-JCN5Vf7K-Jd05gvswNZYQwxbECE4NWyBYHQkAkm4qrB8sBberX2dICzKQ1wmkJEkYyhnTcITjEJrSJZ-e0Afd7BPH3YAa1I4v_z8-tuLNYH-CnGCdSmdTwLZZf0DjTnuAW-e5A-5xIU9fP3erWBByL0VYrCX9xp8WoDHsiXyb-bN2KuB0a5rLJlWhkC4eVvJhOjpp-Pa_25PjOR_Di8AvrrbPdvHYub5Qvq80_9AeVQSbnaDlYRJDIliFIFy4dbcr5QHpclHMD89ys9kx-WBH0RGXdU2T_hU87bKlo44l4N84tgcqBKybUUzjcNQP9fNOE3VlKkOS2zKZ2xLXmFTFYepbiVhydv6gFQ_s7qkVShdaH1ZC-vmTHm_UVc1TVPXmRYDaZ8uFURDV0i7sdrNMXNdBOXDNntWl1r54L-PCSrodBs9utAcQZnRGh8dNeGj-wMt4qKsyzanuyWEs2e8Z3hieJpVWLahGO3K8BQp7n_52dk_UyKnJMwzPN2VXzr8OwAA__9dWarb">