mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
aco/post-ra: rename overwritten_subdword to allow additional uses
Cc: mesa-stable
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27855>
(cherry picked from commit a5056b2f93)
This commit is contained in:
parent
77a4e8b7a4
commit
32e278d0af
2 changed files with 5 additions and 5 deletions
|
|
@ -994,7 +994,7 @@
|
|||
"description": "aco/post-ra: rename overwritten_subdword to allow additional uses",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ Idx const_or_undef{UINT32_MAX, 2};
|
|||
/** Indicates that a register was overwritten by different instructions in previous blocks. */
|
||||
Idx overwritten_untrackable{UINT32_MAX, 3};
|
||||
|
||||
/** Indicates that a register was written by subdword operations. */
|
||||
Idx overwritten_subdword{UINT32_MAX, 4};
|
||||
/** Indicates that there isn't a clear single writer, for example due to subdword operations. */
|
||||
Idx overwritten_unknown_instr{UINT32_MAX, 4};
|
||||
|
||||
struct pr_opt_ctx {
|
||||
using Idx_array = std::array<Idx, max_reg_cnt>;
|
||||
|
|
@ -150,7 +150,7 @@ save_reg_writes(pr_opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
Idx idx{ctx.current_block->index, ctx.current_instr_idx};
|
||||
|
||||
if (def.regClass().is_subdword())
|
||||
idx = overwritten_subdword;
|
||||
idx = overwritten_unknown_instr;
|
||||
|
||||
assert((r + dw_size) <= max_reg_cnt);
|
||||
assert(def.size() == dw_size || def.regClass().is_subdword());
|
||||
|
|
@ -211,7 +211,7 @@ is_overwritten_since(pr_opt_ctx& ctx, PhysReg reg, RegClass rc, const Idx& since
|
|||
return true;
|
||||
else if (i == overwritten_untrackable || i == not_written_yet)
|
||||
continue;
|
||||
else if (i == overwritten_subdword)
|
||||
else if (i == overwritten_unknown_instr)
|
||||
return true;
|
||||
|
||||
assert(i.found());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue