Lines Matching refs:phi
51 dominators, &block, &vn_table](Instruction* phi) { in Process() argument
53 if (!CheckType(phi->type_id())) return; in Process()
59 if (!CheckPhiUsers(phi, &block)) return; in Process()
65 BasicBlock* inc0 = GetIncomingBlock(phi, 0u); in Process()
73 true_value = GetIncomingValue(phi, 0u); in Process()
74 false_value = GetIncomingValue(phi, 1u); in Process()
76 true_value = GetIncomingValue(phi, 1u); in Process()
77 false_value = GetIncomingValue(phi, 0u); in Process()
106 context()->KillNamesAndDecorates(phi); in Process()
107 context()->ReplaceAllUsesWith(phi->result_id(), in Process()
129 Instruction* select = builder.AddSelect(phi->type_id(), condition, in Process()
132 select->UpdateDebugInfoFrom(phi); in Process()
133 context()->ReplaceAllUsesWith(phi->result_id(), select->result_id()); in Process()
134 to_kill.push_back(phi); in Process()
176 bool IfConversion::CheckPhiUsers(Instruction* phi, BasicBlock* block) { in CheckPhiUsers() argument
177 return get_def_use_mgr()->WhileEachUser(phi, [block, in CheckPhiUsers()
213 BasicBlock* IfConversion::GetIncomingBlock(Instruction* phi, in GetIncomingBlock() argument
216 return GetBlock(phi->GetSingleWordInOperand(in_index)); in GetIncomingBlock()
219 Instruction* IfConversion::GetIncomingValue(Instruction* phi, in GetIncomingValue() argument
222 return get_def_use_mgr()->GetDef(phi->GetSingleWordInOperand(in_index)); in GetIncomingValue()