aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2014-06-22 09:57:02 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2014-06-22 09:57:02 +0000
commit82db17cbd4b3d4278b505df7288f3f3771e87203 (patch)
treefc0c702f1a6618e8f11b87c2b82fb2200ca6f2b8 /gcc
parent43c5fcfc0e6d185e7bbfdc2421c34db646c6f999 (diff)
downloadgcc-82db17cbd4b3d4278b505df7288f3f3771e87203.zip
gcc-82db17cbd4b3d4278b505df7288f3f3771e87203.tar.gz
gcc-82db17cbd4b3d4278b505df7288f3f3771e87203.tar.bz2
mips.c (mips_move_to_gpr_cost): Remove mode argument.
gcc/ * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument. (mips_move_from_gpr_cost): Likewise. (mips_register_move_cost): Update accordingly. (mips_secondary_reload_class): Remove name of in_p. From-SVN: r211874
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mips/mips.c27
2 files changed, 20 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5ac7e78..9240cc3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
+ (mips_move_from_gpr_cost): Likewise.
+ (mips_register_move_cost): Update accordingly.
+ (mips_secondary_reload_class): Remove name of in_p.
+
2014-06-22 Marc Glisse <marc.glisse@inria.fr>
PR target/61503
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 1b1633c..f224ae8 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -11979,13 +11979,12 @@ mips_canonicalize_move_class (reg_class_t rclass)
return rclass;
}
-/* Return the cost of moving a value of mode MODE from a register of
- class FROM to a GPR. Return 0 for classes that are unions of other
- classes handled by this function. */
+/* Return the cost of moving a value from a register of class FROM to a GPR.
+ Return 0 for classes that are unions of other classes handled by this
+ function. */
static int
-mips_move_to_gpr_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
- reg_class_t from)
+mips_move_to_gpr_cost (reg_class_t from)
{
switch (from)
{
@@ -12013,12 +12012,12 @@ mips_move_to_gpr_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
}
}
-/* Return the cost of moving a value of mode MODE from a GPR to a
- register of class TO. Return 0 for classes that are unions of
- other classes handled by this function. */
+/* Return the cost of moving a value from a GPR to a register of class TO.
+ Return 0 for classes that are unions of other classes handled by this
+ function. */
static int
-mips_move_from_gpr_cost (enum machine_mode mode, reg_class_t to)
+mips_move_from_gpr_cost (reg_class_t to)
{
switch (to)
{
@@ -12071,15 +12070,15 @@ mips_register_move_cost (enum machine_mode mode,
/* Handle cases in which only one class deviates from the ideal. */
dregs = TARGET_MIPS16 ? M16_REGS : GENERAL_REGS;
if (from == dregs)
- return mips_move_from_gpr_cost (mode, to);
+ return mips_move_from_gpr_cost (to);
if (to == dregs)
- return mips_move_to_gpr_cost (mode, from);
+ return mips_move_to_gpr_cost (from);
/* Handles cases that require a GPR temporary. */
- cost1 = mips_move_to_gpr_cost (mode, from);
+ cost1 = mips_move_to_gpr_cost (from);
if (cost1 != 0)
{
- cost2 = mips_move_from_gpr_cost (mode, to);
+ cost2 = mips_move_from_gpr_cost (to);
if (cost2 != 0)
return cost1 + cost2;
}
@@ -12116,7 +12115,7 @@ mips_memory_move_cost (enum machine_mode mode, reg_class_t rclass, bool in)
enum reg_class
mips_secondary_reload_class (enum reg_class rclass,
- enum machine_mode mode, rtx x, bool in_p)
+ enum machine_mode mode, rtx x, bool)
{
int regno;