[AArch64] Improve cost model to handle sdiv by a pow-of-two.
authorChad Rosier <mcrosier@codeaurora.org>
Mon, 29 Sep 2014 13:59:31 +0000 (13:59 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Mon, 29 Sep 2014 13:59:31 +0000 (13:59 +0000)
commit70d54ac848dbea20d1cd4778bba9a93fdc889971
tree9c7e04641bf301d2a60fa1488adac638ed539960
parent312a02e193a2345dad15465570e55d9e5e422030
[AArch64] Improve cost model to handle sdiv by a pow-of-two.

This patch improves the target-specific cost model to better handle signed
division by a power of two. The immediate result is that this enables the SLP
vectorizer to do a better job.

http://reviews.llvm.org/D5469
PR20714

llvm-svn: 218607
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Transforms/SLPVectorizer/AArch64/sdiv-pow2.ll [new file with mode: 0644]