HomePhabricator

[CodeGen] Introduce MachineBasicBlock::replacePhiUsesWith helper and use it. NFC

Description

[CodeGen] Introduce MachineBasicBlock::replacePhiUsesWith helper and use it. NFC

Summary:
Found a couple of places in the code where all the PHI nodes
of a MBB is updated, replacing references to one MBB by
reference to another MBB instead.

This patch simply refactors the code to use a common helper
(MachineBasicBlock::replacePhiUsesWith) for such PHI node
updates.

Reviewers: t.p.northover, arsenm, uabelho

Subscribers: wdng, hiraditya, jsji, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66750

Details

Committed
bjopeAug 30 2019, 4:23 AM
Differential Revision
D66750: [CodeGen] Introduce MachineBasicBlock::replacePhiUsesOfBlockWith helper and use it. NFC
Parents
rL370462: [dotest] Finish removing -q
Branches
Unknown
Tags
Unknown