[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)
commitea64dce261cc35e76555111f58af91339502fbd0
treef6ca68a5045533e84483443d25b6409ed6ebf467
parent97552d7c1c5a42f8eb6ce8ea8301df4c0185e768
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
test/Transforms/SLPVectorizer/AArch64/sdiv-pow2.ll [new file with mode: 0644]