[all-commits] [llvm/llvm-project] 8af859: [MachineLoop] New helper isLoopInvariant()

Sjoerd Meijer via All-commits all-commits at lists.llvm.org
Fri Jan 8 01:27:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8af859d514fa0ef4a75b3c3dfb1ee8f42ac9bd04
      https://github.com/llvm/llvm-project/commit/8af859d514fa0ef4a75b3c3dfb1ee8f42ac9bd04
  Author: Sjoerd Meijer <sjoerd.meijer at gmail.com>
  Date:   2021-01-08 (Fri, 08 Jan 2021)

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

  Log Message:
  -----------
  [MachineLoop] New helper isLoopInvariant()

This factors out code from MachineLICM that determines whether an instruction
is loop-invariant, which is a generally useful function. Thus this allows to
use that helper elsewhere too.

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




More information about the All-commits mailing list