[PATCH] D27518: Moving isComplex decision to TTI

Mohammed Agabaria via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 06:05:42 PST 2016


magabari created this revision.
magabari added reviewers: dorit, mkuper, delena, Ayal, aschwaighofer, hsaito.
magabari added a subscriber: llvm-commits.
Herald added a subscriber: mzolotukhin.

Currently isLikelyComplexAddressComputation tries to figure out if the given stride seems to be "complex" and need some extra cost for address computation handling.

This code seems to be target dependent which may not be the same for all targets.
Passed the decision whether the given stride is complex or not to the target by proposing a new interface method in the TTI interface.

Specifically at X86 targets we dont see any significant address computation cost in case if the access is strided.


https://reviews.llvm.org/D27518

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/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/X86/strided_load_cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27518.80582.patch
Type: text/x-patch
Size: 9445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/291e4287/attachment-0001.bin>


More information about the llvm-commits mailing list