[all-commits] [llvm/llvm-project] 42ac4e: [MachineLICM] Add shouldHoist method to TargetInst...

Carl Ritson via All-commits all-commits at lists.llvm.org
Mon Feb 7 22:53:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42ac4e1a120c0d0784365c2c7f39c87854b507c4
      https://github.com/llvm/llvm-project/commit/42ac4e1a120c0d0784365c2c7f39c87854b507c4
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetInstrInfo.h
    M llvm/lib/CodeGen/MachineLICM.cpp

  Log Message:
  -----------
  [MachineLICM] Add shouldHoist method to TargetInstrInfo

Add a shouldHoist method to TargetInstrInfo which is queried by
MachineLICM to override hoisting decisions for a given target.
This mirrors functionality provided by shouldSink.

Reviewed By: foad

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




More information about the All-commits mailing list