[all-commits] [llvm/llvm-project] f9f78c: [MachineScheduler] improve reuse of 'releaseNode'm...

Lorenzo Casalino via All-commits all-commits at lists.llvm.org
Wed Jan 1 12:23:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f9f78cf6ac73d9148be9b626f418bf6770e512f6
      https://github.com/llvm/llvm-project/commit/f9f78cf6ac73d9148be9b626f418bf6770e512f6
  Author: Lorenzo Casalino <lorenzo.casalino93 at gmail.com>
  Date:   2020-01-01 (Wed, 01 Jan 2020)

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

  Log Message:
  -----------
  [MachineScheduler] improve reuse of 'releaseNode'method

The 'SchedBoundary::releaseNode' is merely invoked for releasing the Top/Bottom root nodes.
However,  'SchedBoundary::releasePending' uses its same logic to check if the Pending queue
has any releasable SUnit.
It is possible to slightly modify the body of the two, allowing re-use of the former ('releaseNode')
in the latter.

Patch by Lorenzo Casalino <lorenzo.casalino93 at gmail.com>

Reviewers: MatzeB, fhahn, atrick

Reviewed By: fhahn

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




More information about the All-commits mailing list