<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/97192>97192</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Opt InstCount does not print instruction counts -
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
TACIXAT
</td>
</tr>
</table>
<pre>
When attempting to run with the new pass manager -
```cmd
>opt.exe -stats --passes=instcount -o NUL main.bc
===-------------------------------------------------------------------------===
... Statistics Collected ...
===-------------------------------------------------------------------------===
77 bitcode-reader - Number of Metadata records loaded
6 bitcode-reader - Number of MDStrings loaded
```
Running the old way that appears online a lot with `-instcount`, opt does not recognize that switch.
This is a debug build on Windows (same result with release).
```cmd
>opt.exe --version
LLVM (http://llvm.org/):
LLVM version 18.1.8
DEBUG build with assertions.
Default target: x86_64-pc-windows-msvc
Host CPU: znver4
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VE2P2zYQ_TXUZSBBpizZPujg2HEbYJMWzW7TW0GRY4kFRQqckZ3k1xf6WLfpoeihiEBQEGfm8XHeExWRbT1iLco3ojwnauQuxPr5eHr32_E5aYL5Un_q0INixn5g61vgAHH0cLfcAXcIHu8wKCLolVctRkhB5GeRH9e5ypehe7OuFG_DwBl-RkiJFROk6QSAJIqz9cQ6jJ4hDfDh5Ql6ZX3W6NfS8zLS_-t5IC4bQJZl8JEVW2KrCU7BOdSMZgp8Jw7LvNtBY1kHg2lEZea-fhj7BiOEK7xHVkaxgog6REPggjK4Nhiqfy09f-RoffttzUOmv3P4ZfR-lrxDCM7AXX0B7hSDGgZUkSB4Zz2CAhd4cYSo8vSh4QQnTxAGBhOQwAeeCbfefsUFie6WdZd9Y5nnzhJYAgUGm7GFZrTOQPDwyXoT7gRC7kn1CBFpdOvGER0qQiEP2X-3X3rDSDb4JfL09Ov7CbtjHkRxFPIi5MW5W5-F2M5fh2l56fGcvJbDZp9tsv0agfPbNy8_rKxnbpO5I9vgKXvk4FVN3FnFFlkUR_i8r36vtumg0_tyzLSnm37N_zEQw-nnlynzq79h3P7jfImpC3MoDirBerPbHHayLKoi6WpTXbG8Xouy0rKptjtZ6p2RparKrTIGm8TWMpfbvCryvJQHWWRNs9nrQudXWchK5huxzbFX1mWvvUgs0Yj1Ybc5yMSpBh3NN4iU02UwB4WU04US66kmbcaWxDZ3lpj-QmHLDuufBoZ3nvg0__UPnwzReobJSnHUU-9gthRBCskYXT2JRA-VWsvd2GQ69Ktk6ysdYvgDNQt5mWmRkJeF9q2WfwYAAP__hOh2yg">