mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
r600/sfn: extract logging from CopyPropFwdVisitor::visit(AluInstr*)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Assisted-by: Copilot (auto mode) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945>
This commit is contained in:
parent
5bef7e168a
commit
dc726457e2
1 changed files with 23 additions and 11 deletions
|
|
@ -257,6 +257,8 @@ public:
|
|||
int new_chan[4],
|
||||
int new_sel,
|
||||
bool is_ssa);
|
||||
void log_copy_prop_visit_begin(const AluInstr& instr) const;
|
||||
void log_copy_prop_visit_end(const AluInstr& instr) const;
|
||||
bool can_propagate_dest_to_use(const AluInstr& move_instr,
|
||||
PRegister dest,
|
||||
Instr *use) const;
|
||||
|
|
@ -327,14 +329,7 @@ CopyPropFwdVisitor::CopyPropFwdVisitor(ValueFactory& vf):
|
|||
void
|
||||
CopyPropFwdVisitor::visit(AluInstr *instr)
|
||||
{
|
||||
sfn_log << SfnLog::opt << "CopyPropFwdVisitor:[" << instr->block_id() << ":"
|
||||
<< instr->index() << "] " << *instr << " dset=" << instr->dest() << " ";
|
||||
|
||||
if (instr->dest()) {
|
||||
sfn_log << SfnLog::opt << "has uses; " << instr->dest()->uses().size();
|
||||
}
|
||||
|
||||
sfn_log << SfnLog::opt << "\n";
|
||||
log_copy_prop_visit_begin(*instr);
|
||||
|
||||
if (!instr->can_propagate_src()) {
|
||||
return;
|
||||
|
|
@ -375,9 +370,26 @@ CopyPropFwdVisitor::visit(AluInstr *instr)
|
|||
|
||||
try_propagate_alu_source(instr, use, dest, src, move_addr_use);
|
||||
}
|
||||
if (instr->dest()) {
|
||||
sfn_log << SfnLog::opt << "has uses; " << instr->dest()->uses().size();
|
||||
}
|
||||
log_copy_prop_visit_end(*instr);
|
||||
}
|
||||
|
||||
void
|
||||
CopyPropFwdVisitor::log_copy_prop_visit_begin(const AluInstr& instr) const
|
||||
{
|
||||
sfn_log << SfnLog::opt << "CopyPropFwdVisitor:[" << instr.block_id() << ":"
|
||||
<< instr.index() << "] " << instr << " dset=" << instr.dest() << " ";
|
||||
|
||||
if (instr.dest())
|
||||
sfn_log << SfnLog::opt << "has uses; " << instr.dest()->uses().size();
|
||||
|
||||
sfn_log << SfnLog::opt << "\n";
|
||||
}
|
||||
|
||||
void
|
||||
CopyPropFwdVisitor::log_copy_prop_visit_end(const AluInstr& instr) const
|
||||
{
|
||||
if (instr.dest())
|
||||
sfn_log << SfnLog::opt << "has uses; " << instr.dest()->uses().size();
|
||||
sfn_log << SfnLog::opt << " done\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue