Commit b14dfa94 by Robin Dapp Committed by Robin Dapp

S/390: Increase register move costs for CC_REGS

This increases the move costs for moves involving the CC
register which saves us some instructions in SPEC CPU2006.

gcc/ChangeLog:

2018-11-05  Robin Dapp  <rdapp@linux.ibm.com>

	* config/s390/s390.c (s390_register_move_cost): Increase costs for
        moves involving the CC reg.

From-SVN: r265814
parent d64d068c
2018-11-05 Robin Dapp <rdapp@linux.ibm.com>
* config/s390/s390.c (s390_register_move_cost): Increase costs for
moves involving the CC reg.
2018-11-05 Richard Biener <rguenther@suse.de> 2018-11-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/87873 PR tree-optimization/87873
...@@ -3416,6 +3416,11 @@ s390_register_move_cost (machine_mode mode, ...@@ -3416,6 +3416,11 @@ s390_register_move_cost (machine_mode mode,
&& reg_classes_intersect_p (to, GENERAL_REGS))) && reg_classes_intersect_p (to, GENERAL_REGS)))
return 10; return 10;
/* We usually do not want to copy via CC. */
if (reg_classes_intersect_p (from, CC_REGS)
|| reg_classes_intersect_p (to, CC_REGS))
return 5;
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment