[PATCH] D31124: AMDGPU/SI: Add lane tracking to SI Scheduler
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 11:32:27 PDT 2017
vpykhtin added inline comments.
================
Comment at: lib/Target/AMDGPU/SIMachineScheduler.cpp:1388
+ // Reset read - undef flags and update them later.
+ for (auto &Op : MI.operands())
+ if (Op.isReg() && Op.isDef())
----------------
axeldavy wrote:
> vpykhtin wrote:
> > duplicated code
> This is duplicated with your iterative scheduler, and I suggested to have a common function for both schedulers and the default scheduler (you said you extracted the code from there), but you didn't take the comment into account.
> Do you want a common function for both SI schedulers or with default scheduler too ?
Yes, I remember that comment. This doesn't mean this code should be duplicated even more, I encorage you to make short functions whenever possible, even for your own use. This code is actually isn't very efficient and I planned to make efficient version, I should have been noted this, sorry.
Repository:
rL LLVM
https://reviews.llvm.org/D31124
More information about the llvm-commits
mailing list