[PATCH] D15408: [AArch64/LoopUnrollRuntime] Don't avoid high-cost trip count computation on the AArch64

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 22:17:19 PST 2015


flyingforyou updated this revision to Diff 42497.
flyingforyou added a comment.

Addressed Zhaoshi's comment.


http://reviews.llvm.org/D15408

Files:
  lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Index: lib/Target/AArch64/AArch64TargetTransformInfo.cpp
===================================================================
--- lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -490,6 +490,10 @@
 
   // Disable partial & runtime unrolling on -Os.
   UP.PartialOptSizeThreshold = 0;
+
+  // The benefits of unrolling often outweigh the cost of a division to compute
+  // the trip count.
+  UP.AllowExpensiveTripCount = true;
 }
 
 Value *AArch64TTIImpl::getOrCreateResultFromMemIntrinsic(IntrinsicInst *Inst,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15408.42497.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151211/088f7509/attachment.bin>


More information about the llvm-commits mailing list