llvm-project/llvm/test/Transforms/LoopVectorize/SystemZ
Jonas Paulsson 8624b7e1ce [LoopVectorizer] Let target prefer scalar addressing computations.
The loop vectorizer usually vectorizes any instruction it can and then
extracts the elements for a scalarized use. On SystemZ, all elements
containing addresses must be extracted into address registers (GRs). Since
this extraction is not free, it is better to have the address in a suitable
register to begin with. By forcing address arithmetic instructions and loads
of addresses to be scalar after vectorization, two benefits result:

* No need to extract the register
* LSR optimizations trigger (LSR isn't handling vector addresses currently)

Benchmarking show improvements on SystemZ with this new behaviour.

Any other target could try this by returning false in the new hook
prefersVectorizedAddressing().

Review: Renato Golin, Elena Demikhovsky, Ulrich Weigand
https://reviews.llvm.org/D32422

llvm-svn: 303744
2017-05-24 13:42:56 +00:00
..
addressing.ll [LoopVectorizer] Let target prefer scalar addressing computations. 2017-05-24 13:42:56 +00:00
branch-for-predicated-block.ll [LoopVectorizer] Improve handling of branches during cost estimation. 2017-04-12 13:13:15 +00:00
lit.local.cfg [SystemZ] Fix more target specific tests 2017-04-12 18:03:09 +00:00
load-store-scalarization-cost.ll
mem-interleaving-costs.ll