Home
last modified time | relevance | path

Searched refs:phi_candidate (Results 1 – 6 of 6) sorted by relevance

/third_party/spirv-tools/source/opt/
Dssa_rewrite_pass.cpp98 PhiCandidate& phi_candidate = result.first->second; in CreatePhiCandidate() local
99 return phi_candidate; in CreatePhiCandidate()
131 uint32_t SSARewriter::TryRemoveTrivialPhi(PhiCandidate* phi_candidate) { in TryRemoveTrivialPhi() argument
133 for (uint32_t arg_id : phi_candidate->phi_args()) { in TryRemoveTrivialPhi()
134 if (arg_id == same_id || arg_id == phi_candidate->result_id()) { in TryRemoveTrivialPhi()
141 assert(phi_candidate->copy_of() == 0 && in TryRemoveTrivialPhi()
143 return phi_candidate->result_id(); in TryRemoveTrivialPhi()
156 phi_candidate->MarkCopyOf(same_id); in TryRemoveTrivialPhi()
162 ReplacePhiUsersWith(*phi_candidate, same_id); in TryRemoveTrivialPhi()
167 uint32_t SSARewriter::AddPhiOperands(PhiCandidate* phi_candidate) { in AddPhiOperands() argument
[all …]
Dssa_rewrite_pass.h179 uint32_t GetPhiArgument(const PhiCandidate* phi_candidate, uint32_t ix);
224 uint32_t AddPhiOperands(PhiCandidate* phi_candidate);
248 void FinalizePhiCandidate(PhiCandidate* phi_candidate);
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dssa_rewrite_pass.cpp99 PhiCandidate& phi_candidate = result.first->second; in CreatePhiCandidate() local
100 return phi_candidate; in CreatePhiCandidate()
132 uint32_t SSARewriter::TryRemoveTrivialPhi(PhiCandidate* phi_candidate) { in TryRemoveTrivialPhi() argument
134 for (uint32_t arg_id : phi_candidate->phi_args()) { in TryRemoveTrivialPhi()
135 if (arg_id == same_id || arg_id == phi_candidate->result_id()) { in TryRemoveTrivialPhi()
142 assert(phi_candidate->copy_of() == 0 && in TryRemoveTrivialPhi()
144 return phi_candidate->result_id(); in TryRemoveTrivialPhi()
157 phi_candidate->MarkCopyOf(same_id); in TryRemoveTrivialPhi()
163 ReplacePhiUsersWith(*phi_candidate, same_id); in TryRemoveTrivialPhi()
168 uint32_t SSARewriter::AddPhiOperands(PhiCandidate* phi_candidate) { in AddPhiOperands() argument
[all …]
Dssa_rewrite_pass.h179 uint32_t GetPhiArgument(const PhiCandidate* phi_candidate, uint32_t ix);
224 uint32_t AddPhiOperands(PhiCandidate* phi_candidate);
248 void FinalizePhiCandidate(PhiCandidate* phi_candidate);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dssa_rewrite_pass.cpp99 PhiCandidate& phi_candidate = result.first->second; in CreatePhiCandidate() local
100 return phi_candidate; in CreatePhiCandidate()
132 uint32_t SSARewriter::TryRemoveTrivialPhi(PhiCandidate* phi_candidate) { in TryRemoveTrivialPhi() argument
134 for (uint32_t arg_id : phi_candidate->phi_args()) { in TryRemoveTrivialPhi()
135 if (arg_id == same_id || arg_id == phi_candidate->result_id()) { in TryRemoveTrivialPhi()
142 assert(phi_candidate->copy_of() == 0 && in TryRemoveTrivialPhi()
144 return phi_candidate->result_id(); in TryRemoveTrivialPhi()
157 phi_candidate->MarkCopyOf(same_id); in TryRemoveTrivialPhi()
163 ReplacePhiUsersWith(*phi_candidate, same_id); in TryRemoveTrivialPhi()
168 uint32_t SSARewriter::AddPhiOperands(PhiCandidate* phi_candidate) { in AddPhiOperands() argument
[all …]
Dssa_rewrite_pass.h179 uint32_t GetPhiArgument(const PhiCandidate* phi_candidate, uint32_t ix);
224 uint32_t AddPhiOperands(PhiCandidate* phi_candidate);
248 void FinalizePhiCandidate(PhiCandidate* phi_candidate);