It is a common thing to loop over every PHINode in some BasicBlock
and change old BasicBlock incoming block to a new BasicBlock incoming block.
replaceSuccessorsPhiUsesWith() already had code to do that,
it just wasn't a function.
So outline it into a new function, and use it.
Details
Details
- Reviewers
chandlerc craig.topper spatel danielcdh - Commits
- rZORG1b759edb3220: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
rZORG49820309935f: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
rG1b759edb3220: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
rG49820309935f: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
rG1a1b92217787: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
rL359996: [NFC] BasicBlock: refactor changePhiUses() out of replacePhiUsesWith(), use it
Diff Detail
Diff Detail
- Repository
- rL LLVM