Skip to content

Commit 5cb9f31

Browse files
author
git apple-llvm automerger
committed
Merge commit '339711fbd07b' from llvm.org/main into next
2 parents b8a2746 + 339711f commit 5cb9f31

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

llvm/docs/HowToSubmitABug.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,20 @@ If this does crash, then you should be able to debug this with the following
112112
Run this, then file a bug with the instructions and reduced .bc
113113
files that bugpoint emits.
114114

115-
If bugpoint doesn't reproduce the crash, ``llvm-reduce`` is an alternative
116-
way to reduce LLVM IR. Create a script that repros the crash and run:
115+
If bugpoint doesn't reproduce the crash,
116+
:doc:`llvm-reduce <CommandGuide/llvm-reduce>` is an alternative way to reduce
117+
LLVM IR. Create a script that repros the crash and run:
117118

118119
.. code-block:: bash
119120
120121
llvm-reduce --test=path/to/script foo.bc
121122
122-
which should produce reduced IR that reproduces the crash. Be warned the
123-
``llvm-reduce`` is still fairly immature and may crash.
123+
which should produce reduced IR that reproduces the crash.
124+
125+
.. TIP::
126+
``llvm-reduce`` is still fairly immature and may crash. On the other hand,
127+
unlike ``bugpoint``, ``llvm-reduce -j $NUM_THREADS`` is multi-threaded and
128+
can therefore potentially be much faster.
124129

125130
If none of the above work, you can get the IR before a crash by running the
126131
``opt`` command with the ``--print-before-all --print-module-scope`` flags to

0 commit comments

Comments
 (0)