]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Define TARGET_FLAGS_REGNUM
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Tue, 22 Apr 2014 16:08:33 +0000 (16:08 +0000)
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>
Tue, 22 Apr 2014 16:08:33 +0000 (16:08 +0000)
Ramana noted:

This defines TARGET_FLAGS_REGNUM for AArch64 to be CC_REGNUM. Noticed
this turns on the cmpelim pass after reload and in a few examples and
a couple of benchmarks I noticed a number of comparisons getting
deleted.

From-SVN: r209643

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 1811fa48be343107104be8b4bdc506bdcbd88af3..716cbad6fef30a8555ea2c321dee8372cd2b7444 100644 (file)
@@ -1,3 +1,7 @@
+2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
+
 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
 
        * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
index 51a8a7dbc830060ff781c7f2cc0b510902256e25..60b20a075607c9a23c9dbe557cfd8ac4197cd743 100644 (file)
@@ -8512,6 +8512,9 @@ aarch64_cannot_change_mode_class (enum machine_mode from,
 #undef TARGET_FIXED_CONDITION_CODE_REGS
 #define TARGET_FIXED_CONDITION_CODE_REGS aarch64_fixed_condition_code_regs
 
+#undef TARGET_FLAGS_REGNUM
+#define TARGET_FLAGS_REGNUM CC_REGNUM
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 #include "gt-aarch64.h"