summaryrefslogtreecommitdiffstats
path: root/llvm/docs/OptBisect.rst
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-02-10 07:21:06 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-02-10 07:21:06 +0000
commita826244bb1ec67610a2c071c79e6c9dcf2d6e68e (patch)
treefef20dac68c898d51ab3b83643016182cddb6e27 /llvm/docs/OptBisect.rst
parentb4442f34cdf0fb74d44cecfadc20c21cc1647042 (diff)
downloadbcm5719-llvm-a826244bb1ec67610a2c071c79e6c9dcf2d6e68e.tar.gz
bcm5719-llvm-a826244bb1ec67610a2c071c79e6c9dcf2d6e68e.zip
Fix doc for `-opt-bisect-limit`: the LTO option is linker specific
llvm-svn: 294725
Diffstat (limited to 'llvm/docs/OptBisect.rst')
-rw-r--r--llvm/docs/OptBisect.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/docs/OptBisect.rst b/llvm/docs/OptBisect.rst
index e9f1c2541c9..a9ac227a2af 100644
--- a/llvm/docs/OptBisect.rst
+++ b/llvm/docs/OptBisect.rst
@@ -60,12 +60,15 @@ like this:
clang -O2 -mllvm -opt-bisect-limit=256 my_file.c
The -opt-bisect-limit option may also be applied to link-time optimizations by
-using a prefix to indicate that this is a plug-in option for the linker. The
+using a prefix to indicate that this is a plug-in option for the linker. The
following syntax will set a bisect limit for LTO transformations:
::
+ # When using Gold or lld
clang -flto -Wl,-plugin-opt,-opt-bisect-limit=256 my_file.o my_other_file.o
+ # When using ld64 (macOS)
+ clang -flto -Wl,-mllvm,-opt-bisect-limit=256 my_file.o my_other_file.o
LTO passes are run by a library instance invoked by the linker. Therefore any
passes run in the primary driver compilation phase are not affected by options
OpenPOWER on IntegriCloud