[Doc] update the usage of opt with mem2reg pass in tutorial (#76282)

The current command will raise an error:

> The `opt -passname` syntax for the new pass manager is not supported,
please use `opt -passes=<pipeline>` (or the `-p` alias for a more
concise version).

Update the usage now.
This commit is contained in:
youkaichao 2023-12-24 20:11:27 +08:00 committed by GitHub
parent 1479fe8492
commit eea217681d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ example through the pass, for example, you'll get:
.. code-block:: bash
$ llvm-as < example.ll | opt -mem2reg | llvm-dis
$ llvm-as < example.ll | opt -passes=mem2reg | llvm-dis
@G = weak global i32 0
@H = weak global i32 0