This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Add bundle reordering function for already scheduled bundles.
AbandonedPublic

Authored by dtemirbulatov on Aug 2 2018, 5:16 AM.

Details

Summary

This is part of the change in https://reviews.llvm.org/D28907
With the support of non-alternative operations from PR30787, I found that after bundle scheduling it might be incorrectly ordered for finding the last scheduled instruction in the bundle. Here is the change that solves the issue by reordering the already scheduled bundles, also in this change I assume that for not yet scheduled bundle it is the first instruction in the bundle that should be the last one in the basic block.

Diff Detail

Event Timeline

dtemirbulatov created this revision.Aug 2 2018, 5:16 AM

It really requires a test.

Added test for the issue.

@ABataev Any comments?

We discussed it in private already, I explained why I don't like and suggested to try another solution.

dtemirbulatov abandoned this revision.Sep 12 2018, 7:09 AM

it looks like that I don't need this change anymore.