[PATCH] D65506: [MachineScheduler] improve reuse of 'releaseNode'method

Lorenzo Casalino via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 03:55:51 PDT 2019


DoktorC created this revision.
DoktorC added a reviewer: MatzeB.
DoktorC added a project: LLVM.
Herald added subscribers: javed.absar, hiraditya.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D65506

Files:
  llvm/include/llvm/CodeGen/MachineScheduler.h
  llvm/lib/CodeGen/MachineScheduler.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65506.212547.patch
Type: text/x-patch
Size: 3255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190731/35dd1d46/attachment.bin>


More information about the llvm-commits mailing list