[PATCH] D24855: MachineScheduler: Enable macro fusion in post-RA scheduler
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 18:22:36 PDT 2016
MatzeB created this revision.
MatzeB added reviewers: atrick, tstellarAMD, jonpa.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added subscribers: wdng, mcrosier, MatzeB.
The post-RA scheduler should respect macro fusion opportunities.
Getting this to actually work in a top-down scheduler:
- When fusing A+B, add all predecessors of B to A as weak edges; That
way scheduling of A gets delayed until we are in a position where we
can actually schedule B immediately behind A.
- If B is the bottom schedule boundary mark this in a bit in the
schedule node instead.
PS: Andrew hinted that he won't do much llvm reviewing; I'd appreciate it if someone else could take a look at this.
Repository:
rL LLVM
https://reviews.llvm.org/D24855
Files:
include/llvm/CodeGen/ScheduleDAG.h
lib/CodeGen/MachineScheduler.cpp
test/CodeGen/AArch64/postmisched-fusion.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24855.72232.patch
Type: text/x-patch
Size: 10041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160923/4d713731/attachment.bin>
More information about the llvm-commits
mailing list