[PATCH] D29835: Correct PressureDiff calculation in presence of subregs

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 10:37:26 PST 2017


rampitec created this revision.
Herald added subscribers: nhaehnle, wdng, MatzeB.

If a subreg is used in an instruction it counts in the PressureDiff
as a whole superreg. This patch corrects improper register pressure
calculation by examining operand's lane mask.


Repository:
  rL LLVM

https://reviews.llvm.org/D29835

Files:
  include/llvm/CodeGen/RegisterPressure.h
  lib/CodeGen/MachineScheduler.cpp
  lib/CodeGen/RegisterPressure.cpp
  test/CodeGen/AMDGPU/schedule-regpressure.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29835.88015.patch
Type: text/x-patch
Size: 5730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170210/e89710b5/attachment.bin>


More information about the llvm-commits mailing list