OSDN Git Service

intel/fs: Use regs_written() in spilling cost heuristic for improved accuracy.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 20 Apr 2017 18:44:01 +0000 (11:44 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 24 Apr 2017 17:59:56 +0000 (10:59 -0700)
commitecc19e12dca95d2571d3761dea6dec24b061013c
treea59f48a4447c6353b652e15e7f9eb25d9a098e61
parent6b10c37b9c3a73add73f444fe1aee73c9ec82c94
intel/fs: Use regs_written() in spilling cost heuristic for improved accuracy.

This is what we use later on to compute the number of registers that
will actually get spilled to memory, so it's more likely to match
reality than the current open-coded approximation.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_reg_allocate.cpp