Add a opt-args option that can be used to pass arguments to every opt
invocation. Fixes PR7793:
bugpoint -debug test.ll --opt-args -unroll-count=4
llvm-svn: 110555
diff --git a/llvm/docs/CommandGuide/bugpoint.pod b/llvm/docs/CommandGuide/bugpoint.pod
index 7afeea1..1870a0d 100644
--- a/llvm/docs/CommandGuide/bugpoint.pod
+++ b/llvm/docs/CommandGuide/bugpoint.pod
@@ -67,6 +67,10 @@
Pass all arguments specified after B<--gcc-tool-args> to the invocation of
B<gcc>.
+=item B<--opt-args> I<opt args>
+
+Pass all arguments specified after B<--opt-args> to the invocation of B<opt>.
+
=item B<--disable-{dce,simplifycfg}>
Do not run the specified passes to clean up and reduce the size of the test