diff options
author | Rhys Perry <[email protected]> | 2020-05-15 13:58:20 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-15 18:24:22 +0000 |
commit | 1b6a319c15f3c63acb0384c47a94fb40f2aeb17d (patch) | |
tree | 1de2508d6ef53f0a8fcbed9d988acbcca6ec9356 /src/amd/compiler/aco_opt_value_numbering.cpp | |
parent | a8f800a836200f24607065fe172e51045baf9112 (diff) |
aco: add and set precise flag
No fossil-db changes.
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
Diffstat (limited to 'src/amd/compiler/aco_opt_value_numbering.cpp')
-rw-r--r-- | src/amd/compiler/aco_opt_value_numbering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_opt_value_numbering.cpp b/src/amd/compiler/aco_opt_value_numbering.cpp index 487d1588128..93668442d32 100644 --- a/src/amd/compiler/aco_opt_value_numbering.cpp +++ b/src/amd/compiler/aco_opt_value_numbering.cpp @@ -401,6 +401,8 @@ void process_block(vn_ctx& ctx, Block& block) assert(instr->definitions[i].regClass() == orig_instr->definitions[i].regClass()); assert(instr->definitions[i].isTemp()); ctx.renames[instr->definitions[i].tempId()] = orig_instr->definitions[i].getTemp(); + if (instr->definitions[i].isPrecise()) + orig_instr->definitions[i].setPrecise(true); } } else { ctx.expr_values.erase(res.first); |