S/390: Do not use LA with index register on z196 or newer.
gcc/ChangeLog: 2018-07-17 Robin Dapp <rdapp@linux.ibm.com> * config/s390/s390.c (preferred_la_operand_p): Do not use LA with index register on z196 or later. From-SVN: r262818
This commit is contained in:
parent
22800d6629
commit
5211d26a26
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-07-17 Robin Dapp <rdapp@linux.ibm.com>
|
||||
|
||||
* config/s390/s390.c (preferred_la_operand_p): Do not use LA with
|
||||
index register on z196 or later.
|
||||
|
||||
2018-07-17 Robin Dapp <rdapp@linux.ibm.com>
|
||||
|
||||
* config/s390/s390.c (s390_default_align): Set default function
|
||||
|
|
|
@ -4623,11 +4623,11 @@ preferred_la_operand_p (rtx op1, rtx op2)
|
|||
if (addr.indx && !REGNO_OK_FOR_INDEX_P (REGNO (addr.indx)))
|
||||
return false;
|
||||
|
||||
/* Avoid LA instructions with index register on z196; it is
|
||||
preferable to use regular add instructions when possible.
|
||||
Starting with zEC12 the la with index register is "uncracked"
|
||||
again. */
|
||||
if (addr.indx && s390_tune == PROCESSOR_2817_Z196)
|
||||
/* Avoid LA instructions with index (and base) register on z196 or
|
||||
later; it is preferable to use regular add instructions when
|
||||
possible. Starting with zEC12 the la with index register is
|
||||
"uncracked" again but still slower than a regular add. */
|
||||
if (addr.indx && s390_tune >= PROCESSOR_2817_Z196)
|
||||
return false;
|
||||
|
||||
if (!TARGET_64BIT && !addr.pointer)
|
||||
|
|
Loading…
Add table
Reference in a new issue