[PATCH] D31124: AMDGPU/SI: Add lane tracking to SI Scheduler

Axel Davy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 15:18:51 PDT 2017


axeldavy updated this revision to Diff 104283.
axeldavy added a comment.

I had incorrectly tested after introducing getPressureOfReg.
RPTracker->getPressureOfReg uses were incorrect, because the RPTracker wasn't initialized yet at the moment it was called.

I fixed the problem by defining it twice (each version using the available data in its class).
This is a small function, introduced to remove redundant code as you suggested.
If you have a better suggestion I'll take it.


Repository:
  rL LLVM

https://reviews.llvm.org/D31124

Files:
  lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  lib/Target/AMDGPU/SIMachineScheduler.cpp
  lib/Target/AMDGPU/SIMachineScheduler.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31124.104283.patch
Type: text/x-patch
Size: 71444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170627/a13f3a52/attachment-0001.bin>


More information about the llvm-commits mailing list