From 08ed6d295585c3e0433a16303fdbd42e4ef1cc1b Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Sun, 18 Mar 2018 06:18:18 +0000 Subject: [PATCH] [NDS32] Define LOGICAL_OP_NON_SHORT_CIRCUIT. gcc/ * config/nds32/nds32.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. From-SVN: r258628 --- gcc/ChangeLog | 4 ++++ gcc/config/nds32/nds32.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 224e8cac9ad..ea9ada66865 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-03-18 Chung-Ju Wu + + * config/nds32/nds32.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. + 2018-03-18 Chung-Ju Wu * config/nds32/nds32.h (CLZ_DEFINED_VALUE_AT_ZERO): Define. diff --git a/gcc/config/nds32/nds32.h b/gcc/config/nds32/nds32.h index b350a0cd047..ed6de26cf6e 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 -- 2.30.2