[all-commits] [llvm/llvm-project] 266877: [LSR][ARM] Add new TTI hook to mark some LSR chain...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Wed May 13 06:21:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2668775f66656f719f7d8164066ec5ca64d707f2
      https://github.com/llvm/llvm-project/commit/2668775f66656f719f7d8164066ec5ca64d707f2
  Author: Pierre-vh <pierre.vanhoutryve at arm.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfo.h
    M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/lib/Analysis/TargetTransformInfo.cpp
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.h
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    A llvm/test/CodeGen/Thumb2/LowOverheadLoops/lsr-profitable-chain.ll
    A llvm/test/Transforms/LoopStrengthReduce/ARM/vctp-chains.ll

  Log Message:
  -----------
  [LSR][ARM] Add new TTI hook to mark some LSR chains as profitable

This patch adds a new TTI hook to allow targets to tell LSR that
a chain including some instruction is already profitable and
should not be optimized. This patch also adds an implementation
of this TTI hook for ARM so LSR doesn't optimize chains that include
the VCTP intrinsic.

Differential Revision: https://reviews.llvm.org/D79418




More information about the All-commits mailing list