[all-commits] [llvm/llvm-project] cd76f4: [ARM] Set the immediate cost of GEP operands to 0

David Green via All-commits all-commits at lists.llvm.org
Wed Jun 30 11:19:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd76f43b4995cf01bae9f97a54ca0e79c2355032
      https://github.com/llvm/llvm-project/commit/cd76f43b4995cf01bae9f97a54ca0e79c2355032
  Author: David Green <david.green at arm.com>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/CodeGen/ARM/gep-imm.ll
    M llvm/test/Transforms/ConstantHoisting/ARM/gep-struct-index.ll

  Log Message:
  -----------
  [ARM] Set the immediate cost of GEP operands to 0

This prevents constant gep operands from being hoisted by the Constant
Hoisting pass, leaving them to CodegenPrepare which can usually do a
better job at splitting large offsets. This can, in general, improve
performance and decrease codesize, especially for v6m where many
constants have a high cost.

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




More information about the All-commits mailing list