[PATCH] D55373: [LSR] Generate formulae to enable more post-incs

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 11 05:02:37 PST 2019


samparker updated this revision to Diff 181251.
samparker added a comment.

- Added a command line option to 'EnableBackedgePostIncs'.
- Added a command line option to enable narrowing the search space by collapsing unrolled code.
- The TTI hook now accepts the loop so that the target can make a more informed decision on when it 'shouldFavorBackedgePostIncs'.
- LSRInstance contains a boolean 'FavorBackedgePostInc' which is equal to EnableBackedgePostIncs && shouldFavorBackedgePostIncs.
- When FavorBackedgePostIncs: > Generate the new constant offsets. > In RateRegister, the LoopCost is now set to 0 if the step recurrence is equal to the base offset of the parent formula. > IsProfitableChain has a higher limit > The last expression in the IVChain is not added to IVIncSet so it's a target for optimising.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55373/new/

https://reviews.llvm.org/D55373

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/ARM/ARMTargetTransformInfo.h
  lib/Transforms/Scalar/LoopStrengthReduce.cpp
  test/CodeGen/ARM/dsp-post-incs.ll
  test/CodeGen/ARM/loop-align-cortex-m.ll
  test/CodeGen/ARM/loop-post-incs.ll
  test/Transforms/LoopStrengthReduce/ARM/complexity.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55373.181251.patch
Type: text/x-patch
Size: 88194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190111/c6241051/attachment-0001.bin>


More information about the llvm-commits mailing list