r280072 - /branches/ibm/pcrel-trunk/gcc/config/...

meissner@gcc.gnu.org meissner@gcc.gnu.org
Thu Jan 9 22:53:00 GMT 2020


Author: meissner
Date: Thu Jan  9 22:53:09 2020
New Revision: 280072

URL: https://gcc.gnu.org/viewcvs?rev=280072&root=gcc&view=rev
Log:
Refactor part of rs6000_adjust_vec_address & rs6000_split_vec_extract_var.

2020-01-09  Michael Meissner  <meissner@linux.ibm.com>

	* config/rs6000/rs6000.c (get_vector_offset): New helper function
	to calculate the offset in memory from the start of a vector of a
	particular element.  Add code to keep the element number in
	bounces if the element number is variable.
	(rs6000_adjust_vec_address): Move calculation of offset of the
	vector element to get_vector_offset.
	(rs6000_split_vec_extract_var): Do not do the initial AND of
	element here, move the code to get_vector_offset.


Modified:
    branches/ibm/pcrel-trunk/gcc/config/rs6000/rs6000.c



More information about the Gcc-cvs mailing list