diff options
author | Matt Turner <[email protected]> | 2014-05-26 11:44:09 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-05-26 11:46:52 -0700 |
commit | ccb1ea8a1502286124b48030dac9b898a6c7caaa (patch) | |
tree | f08c8a6ba708f507e9dae1bc6be541a7f43ed01c /src/mesa | |
parent | 0d699530ff9fe68a1898f875b889422536bfc8e5 (diff) |
Revert "i965/fs: Reduce restrictions on interference in register coalescing."
This reverts commit f770123f58b46459e8dbd27525162ee8ba89f30b.
Cc: "10.2" <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78692
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp b/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp index 13b678afdc4..b2ab386ab66 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp @@ -83,6 +83,19 @@ can_coalesce_vars(brw::fs_live_variables *live_intervals, if (!live_intervals->vars_interfere(var_from, var_to)) return true; + /* We know that the live ranges of A (var_from) and B (var_to) + * interfere because of the ->vars_interfere() call above. If the end + * of B's live range is after the end of A's range, then we know two + * things: + * - the start of B's live range must be in A's live range (since we + * already know the two ranges interfere, this is the only remaining + * possibility) + * - the interference isn't of the form we're looking for (where B is + * entirely inside A) + */ + if (live_intervals->end[var_to] > live_intervals->end[var_from]) + return false; + assert(ip >= live_intervals->start[var_to]); fs_inst *scan_inst; |