diff options
author | Chung-Ju Wu <jasonwucj@gmail.com> | 2018-03-18 06:18:18 +0000 |
---|---|---|
committer | Chung-Ju Wu <jasonwucj@gcc.gnu.org> | 2018-03-18 06:18:18 +0000 |
commit | 08ed6d295585c3e0433a16303fdbd42e4ef1cc1b (patch) | |
tree | 3d9eef6074a7b5a76d71115cf692acfd538d0059 | |
parent | 24a711668bf5ecdd6b277333d2ab5ef10189f307 (diff) | |
download | gcc-08ed6d295585c3e0433a16303fdbd42e4ef1cc1b.zip gcc-08ed6d295585c3e0433a16303fdbd42e4ef1cc1b.tar.gz gcc-08ed6d295585c3e0433a16303fdbd42e4ef1cc1b.tar.bz2 |
[NDS32] Define LOGICAL_OP_NON_SHORT_CIRCUIT.
gcc/
* config/nds32/nds32.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
From-SVN: r258628
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nds32/nds32.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 224e8ca..ea9ada6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2018-03-18 Chung-Ju Wu <jasonwucj@gmail.com> + * config/nds32/nds32.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. + +2018-03-18 Chung-Ju Wu <jasonwucj@gmail.com> + * config/nds32/nds32.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. 2018-03-17 Chung-Ju Wu <jasonwucj@gmail.com> diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index b350a0c..ed6de26 100644 --- a/gcc/config/nds32/nds32.h +++ b/gcc/config/nds32/nds32.h @@ -867,6 +867,10 @@ enum reg_class other values are interpreted relative to that. */ #define BRANCH_COST(speed_p, predictable_p) ((speed_p) ? 2 : 0) +/* Override BRANCH_COST heuristic which empirically produces worse + performance for removing short circuiting from the logical ops. */ +#define LOGICAL_OP_NON_SHORT_CIRCUIT 0 + #define SLOW_BYTE_ACCESS 1 #define NO_FUNCTION_CSE 1 |