Optimize vec_extract of vectors in memory with a PC-relative address.
authorMichael Meissner <meissner@gcc.gnu.org>
Mon, 3 Feb 2020 23:25:07 +0000 (18:25 -0500)
committerMichael Meissner <meissner@gcc.gnu.org>
Mon, 3 Feb 2020 23:25:07 +0000 (18:25 -0500)
commite181ffc92a355d1854a413f27354e519f93e126a
tree00836d49c47a2d6f89cacbd1def4d9eee11062d2
parentfb47dc28d2d38f56af65e9f244af8870bd568b0b
Optimize vec_extract of vectors in memory with a PC-relative address.

2020-02-03  Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
function to adjust PC-relative vector addresses.
(rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
handle vectors with PC-relative addresses.
gcc/ChangeLog
gcc/config/rs6000/rs6000.c