Lines Matching refs:val_id
261 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef() local
262 if (val_id != 0) return val_id; in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
278 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
283 if (val_id == 0) { in GetReachingDef()
284 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
285 if (val_id == 0) { in GetReachingDef()
290 WriteVariable(var_id, bb, val_id); in GetReachingDef()
292 return val_id; in GetReachingDef()
308 uint32_t val_id = 0; in ProcessStore() local
311 val_id = inst->GetSingleWordInOperand(kStoreValIdInIdx); in ProcessStore()
314 val_id = inst->GetSingleWordInOperand(kVariableInitIdInIdx); in ProcessStore()
317 WriteVariable(var_id, bb, val_id); in ProcessStore()
319 inst, var_id, val_id, inst, &decls_invisible_to_value_assignment_); in ProcessStore()
322 std::cerr << "\tFound store '%" << var_id << " = %" << val_id << "': " in ProcessStore()
371 uint32_t val_id = 0; in ProcessLoad() local
380 val_id = GetReachingDef(var_id, bb); in ProcessLoad()
381 if (val_id == 0) { in ProcessLoad()
392 Instruction* reaching_def_inst = def_use_mgr->GetDef(val_id); in ProcessLoad()
395 var_id = val_id; in ProcessLoad()
406 load_replacement_[load_id] = val_id; in ProcessLoad()
407 PhiCandidate* defining_phi = GetPhiCandidate(val_id); in ProcessLoad()
415 << " (replacement for %" << load_id << " is %" << val_id << ")\n"; in ProcessLoad()
469 uint32_t val_id = repl.second; in GetReplacement() local
470 auto it = load_replacement_.find(val_id); in GetReplacement()
472 val_id = it->second; in GetReplacement()
473 it = load_replacement_.find(val_id); in GetReplacement()
475 return val_id; in GetReplacement()
584 uint32_t val_id = GetReplacement(repl); in ApplyReplacements() local
592 << " (%" << load_id << " -> %" << val_id << ")\n"; in ApplyReplacements()
600 pass_->context()->ReplaceAllUsesWith(load_id, val_id); in ApplyReplacements()