[PATCH] [AArch64] Improve the target-specific cost model to better handle signed division by a power of 2.

Chad Rosier mcrosier at codeaurora.org
Tue Sep 23 13:02:38 PDT 2014


================
Comment at: lib/Target/AArch64/AArch64TargetTransformInfo.cpp:419
@@ +418,3 @@
+      Opd2PropInfo == TargetTransformInfo::OP_PowerOf2) {
+    // On AArch64, vector signed division by constants power-of-two are
+    // normally expanded to the sequence ADD + CMP + SELECT + SRA.
----------------
s/vector/scalar

http://reviews.llvm.org/D5469






More information about the llvm-commits mailing list