• Home
  • Raw
  • Download

Lines Matching refs:val_id

260   uint32_t val_id = GetValueAtBlock(var_id, bb);  in GetReachingDef()  local
261 if (val_id != 0) return val_id; in GetReachingDef()
268 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
277 val_id = AddPhiOperands(&phi_candidate); in GetReachingDef()
282 if (val_id == 0) { in GetReachingDef()
283 val_id = pass_->GetUndefVal(var_id); in GetReachingDef()
284 if (val_id == 0) { in GetReachingDef()
289 WriteVariable(var_id, bb, val_id); in GetReachingDef()
291 return val_id; in GetReachingDef()
307 uint32_t val_id = 0; in ProcessStore() local
310 val_id = inst->GetSingleWordInOperand(kStoreValIdInIdx); in ProcessStore()
313 val_id = inst->GetSingleWordInOperand(kVariableInitIdInIdx); in ProcessStore()
316 WriteVariable(var_id, bb, val_id); in ProcessStore()
318 inst, var_id, val_id, inst); in ProcessStore()
321 std::cerr << "\tFound store '%" << var_id << " = %" << val_id << "': " in ProcessStore()
370 uint32_t val_id = 0; in ProcessLoad() local
379 val_id = GetReachingDef(var_id, bb); in ProcessLoad()
380 if (val_id == 0) { in ProcessLoad()
391 Instruction* reaching_def_inst = def_use_mgr->GetDef(val_id); in ProcessLoad()
394 var_id = val_id; in ProcessLoad()
405 load_replacement_[load_id] = val_id; in ProcessLoad()
406 PhiCandidate* defining_phi = GetPhiCandidate(val_id); in ProcessLoad()
414 << " (replacement for %" << load_id << " is %" << val_id << ")\n"; in ProcessLoad()
468 uint32_t val_id = repl.second; in GetReplacement() local
469 auto it = load_replacement_.find(val_id); in GetReplacement()
471 val_id = it->second; in GetReplacement()
472 it = load_replacement_.find(val_id); in GetReplacement()
474 return val_id; in GetReplacement()
583 uint32_t val_id = GetReplacement(repl); in ApplyReplacements() local
591 << " (%" << load_id << " -> %" << val_id << ")\n"; in ApplyReplacements()
599 pass_->context()->ReplaceAllUsesWith(load_id, val_id); in ApplyReplacements()