[midend]减少tmp_cond的冲突

This commit is contained in:
rain2133
2025-08-19 09:45:42 +08:00
parent ad5f35c1a0
commit 8094fd5705
2 changed files with 5 additions and 4 deletions

View File

@@ -1007,6 +1007,7 @@ class PhiInst : public Instruction {
void replaceIncomingBlock(BasicBlock *oldBlock, BasicBlock *newBlock, Value *newValue);
void refreshMap() {
blk2val.clear();
vsize = getNumOperands() / 2;
for (unsigned i = 0; i < vsize; ++i) {
blk2val[getIncomingBlock(i)] = getIncomingValue(i);
}