Since the previous commit 6924c00c8710ec95834e21f8d68b10f2d09a8680 ("xtensa:
Make all memory constraints special"), it has been discovered that the
definition of TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, which was previously
introduced to obtain appropriate memory reference displacements (commit
211459e12147e9ed42c0a0947b1b95b551e03ef3), is no longer necessary. In other
words:
- The order of the movsi_internal MD pattern alternatives has been re-
arranged so that memory references with shorter displacements take
precedence
- Furthermore, since all memory constraints are now "special," address
reload operations that explicitly add the displacement to the base
register and then adopt a 0-displacement reference are no longer
performed and are simply skipped
Therefore, this patch removes the definition of
TARGET_DIFFERENT_ADDR_DISPLACEMENT_P.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (TARGET_DIFFERENT_ADDR_DISPLACEMENT_P):
Remove.
---
gcc/config/xtensa/xtensa.cc | 3 ---
1 file changed, 3 deletions(-)
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index 235b4e0446d..c486415e79e 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -367,9 +367,6 @@ static rtx_insn *xtensa_md_asm_adjust (vec<rtx> &, vec<rtx>
&,
#undef TARGET_MAX_ANCHOR_OFFSET
#define TARGET_MAX_ANCHOR_OFFSET 1020
-#undef TARGET_DIFFERENT_ADDR_DISPLACEMENT_P
-#define TARGET_DIFFERENT_ADDR_DISPLACEMENT_P hook_bool_void_true
-
#undef TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
#define TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
xtensa_ira_change_pseudo_allocno_class
--
2.39.5