[AArch64] When combining constant mul of power of 2 plus/minus 1, prefer shift
authorChad Rosier <mcrosier@codeaurora.org>
Mon, 9 Jun 2014 01:25:51 +0000 (01:25 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Mon, 9 Jun 2014 01:25:51 +0000 (01:25 +0000)
commit0607e82c0a59491a5b27ec150ac1c77345ecea6a
treefc4d375d94a71edb1f69d55bc49bdf100c59e051
parent09d6a9040c9572056bb57a57d903fd397be07bb9
[AArch64] When combining constant mul of power of 2 plus/minus 1, prefer shift
plus add.  The shift can be folded into the add.  This only effects codegen
when the constant is 3.

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