[AArch64] Correctly determine if {ADD,SUB}{W,X}rs instructions are cheap
These are marked to be "as cheap as a move". According to publicly available Software Optimization Guides, they have one cycle latency and maximum throughput only on some microarchitectures, only for `LSL` and only for some shift amounts. This patch uses the subtarget feature `FeatureALULSLFast` to determine how cheap the instructions are. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D152827 Change-Id: I8f0d7e79bcf277ebf959719991c29a1bc7829486
Loading
Please sign in to comment