]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/arc/arc.c
arc: Avoid generating brcc instructions with limm
authorClaudiu Zissulescu <claziss@gmail.com>
Fri, 11 Dec 2020 16:27:21 +0000 (18:27 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Fri, 11 Dec 2020 16:29:56 +0000 (18:29 +0200)
commita412be00c49406889a84791935194fc54a89ff79
tree5fcd154ff61ff06c9e4cf00144012b4fc273e856
parentdfbe642c97f7f430926cb6b33cd5c20b42c85573
arc: Avoid generating brcc instructions with limm

BRcc instructions are generated quite late in the compilation
process. These instructions combines a compare with a regular
conditional branch if the result of the compare is not used
anylonger. However, when compiling for size, it is better to avoid
BRcc instructions which are introducing a 32-bit long immediate.

gcc/
2020-12-11  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_reorg): Avoid limm in BRcc.
gcc/config/arc/arc.c