summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2016-05-27 15:13:31 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2016-05-27 15:13:31 +0000
commit536826934374f81983a1cb2bec3092bc1b9f7535 (patch)
tree5e377e45afd9888ba64c6aa6b4737890755bf950 /docs
parent3317d0fa0bd1f5c5adc14bcc6adc2a38acc9064b (diff)
[mips] Compact branch policy setting.
This patch adds the commandline option -mcompact-branches={never,optimal,always), which controls how LLVM generates compact branches for MIPSR6 targets. By default, the compact branch policy is 'optimal' where LLVM will generate the most appropriate branch for any situation. The 'never' and 'always' policy will disable or always generate compact branches wherever possible respectfully. Reviewers: dsanders, vkalintiris, atanasyan Differential Revision: http://reviews.llvm.org/D20729 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/UsersManual.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst
index b88a418d89..64ae4661d2 100644
--- a/docs/UsersManual.rst
+++ b/docs/UsersManual.rst
@@ -1140,6 +1140,16 @@ are listed below.
This option restricts the generated code to use general registers
only. This only applies to the AArch64 architecture.
+.. option:: -mcompact-branches=[values]
+
+ Control the usage of compact branches for MIPSR6.
+
+ Valid values are: ``never``, ``optimal`` and ``always``.
+ The default value is ``optimal`` which generates compact branches
+ when a delay slot cannot be filled. ``never`` disables the usage of
+ compact branches and ``always`` generates compact branches whenever
+ possible.
+
**-f[no-]max-type-align=[number]**
Instruct the code generator to not enforce a higher alignment than the given
number (of bytes) when accessing memory via an opaque pointer or reference.