[AArch64] Lower multiplication by a constant int to shl+add+shl

Description

[AArch64] Lower multiplication by a constant int to shl+add+shl

Lower a = b * C where C = (2^n + 1) * 2^m to

add w0, w0, w0, lsl n
lsl w0, w0, m

Differential Revision: https://reviews.llvm.org/D229245

Details

Committed
haichengNov 15 2016, 12:16 PM
Parents
rL287018: AMDGPU: Analyze mubuf with immediate soffset
Branches
Unknown
Tags
Unknown