OSDN Git Service

[AArch64] When combining constant mul of -3, prefer (sub x, (shl x, N)).
authorChad Rosier <mcrosier@codeaurora.org>
Tue, 3 Mar 2015 17:31:01 +0000 (17:31 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Tue, 3 Mar 2015 17:31:01 +0000 (17:31 +0000)
commitf1de1adc82c69894fcc8178c689269215c6f2710
tree9ed3f00a2fe890ef910c04f05b1a2e541cdc08fd
parentb056aa798d14792e5d5b03710c6983dd465eb519
[AArch64] When combining constant mul of -3, prefer (sub x, (shl x, N)).

This change only effects codegen when the constant is -3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/CodeGen/AArch64/mul_pow2.ll