[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)
commit8e38f30e49f323a78c27083004c8651525e1bbfd
tree217141eeec1e28965f2202a472aacf28270e3cc0
parente292262e59217e21becdd762aa28967ea157d2f8
[AArch64] When combining constant mul of -3, prefer (sub x, (shl x, N)).

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

llvm-svn: 231085
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/mul_pow2.ll