[PATCH] D18898: [Loop Rotation] Make default max rotation header size threshold dependent on target CPU

Andrey Turetskiy via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 04:13:55 PDT 2016


aturetsk created this revision.
aturetsk added reviewers: mzolotukhin, nadav, bogner, bruno, echristo.
aturetsk added subscribers: llvm-commits, zinovy.nis.
Herald added a subscriber: mzolotukhin.

Make default max rotation header size threshold dependent on target CPU through TTI.
Also set the threshold to 2 for Lakemont. Experiments on MCU benchmarks (Dhrystone, Coremark) show that this is the most optimal value for code size and performance.

http://reviews.llvm.org/D18898

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  lib/Transforms/Scalar/LoopRotation.cpp
  test/Transforms/LoopRotate/target-default.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18898.53015.patch
Type: text/x-patch
Size: 7431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160408/256bbbba/attachment.bin>


More information about the llvm-commits mailing list