| 3099 | } |
| 3100 | |
| 3101 | void Phi::replaceSourceWith(const string &from, const string &to) { |
| 3102 | for (auto &[_, bb] : values) { |
| 3103 | if (bb == from) { |
| 3104 | bb = to; |
| 3105 | break; |
| 3106 | } |
| 3107 | } |
| 3108 | } |
| 3109 | |
| 3110 | void Phi::setValue(size_t index, Value &val) { |
| 3111 | values[index].first = &val; |