This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Matrix Flattening optimization


"Richard Guenther" <richard.guenther@gmail.com> writes:

> Even padding to either power-of-two row size (for cheap
> multiplication) or cache-line aligned row-size if cheap enough may
> be worth in general.

Power-of-two rows can increase the probability of cache line thrashing
due to mapping conflicts (depending on the cache architecture), so
actually you might want to avoid them.

BTW, what about targets where a multiplication is slower than an
indirect access? Unless strength reduction can be done, this
transformation might actually lead to a slowdown there...

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]