[cris-decc0,3/14] config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.

Message ID 202002120653.01C6rFxw026441@ignucius.se.axis.com
State New
Headers show
Series
  • A set of compare-elimination-fixes.
Related show

Commit Message

Hans-Peter Nilsson Feb. 12, 2020, 6:53 a.m.
* config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.

For some reason (like a buglet in the user in jump.c), defining this makes
a beneficial difference in ledf2, thus this is separated to its own commit.
Also, add comment on (not defining) REVERSE_CONDITION.
---
 gcc/config/cris/cris.h | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.11.0


brgds, H-P

Patch

diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index e721d12d0..bc07dd541 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -701,6 +701,9 @@  struct cum_args {int regs;};
 /* FIXME: Maybe define TARGET_CANONICALIZE_COMPARISON later, when
    playing with optimizations.  Definitely define SELECT_CC_MODE.  */
 
+#define REVERSIBLE_CC_MODE(MODE) true
+
+/* No known need to define REVERSE_CONDITION, the default is good.  */
 
 /* Node: Costs */