[all-commits] [llvm/llvm-project] 93c823: [AArch64TTI] Compute imm materialization cost for ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Dec 4 03:09:32 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93c8235702cb47d078d6e585a4f6446cba72c6fa
      https://github.com/llvm/llvm-project/commit/93c8235702cb47d078d6e585a4f6446cba72c6fa
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2019-12-04 (Wed, 04 Dec 2019)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    A llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-intrinsics.ll

  Log Message:
  -----------
  [AArch64TTI] Compute imm materialization cost for AArch64 intrinsics

Currently, getIntImmCost returns TCC_Free for almost all intrinsics.
For most AArch64 specific intrinsics however, it looks like integer
constants cannot be folded into most of them (at least the ones I checked).

Unless we know that we can fold integer operands with the intrinsic, we
handle more cases correctly by returning the cost to materialize the
immediate than return TCC_Free.

Reviewers: SjoerdMeijer, dmgreen, t.p.northover, ributzka

Reviewed By: SjoerdMeijer

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




More information about the All-commits mailing list