]> granicus.if.org Git - llvm/commit
[CodeGen] Introduce MachineBasicBlock::replacePhiUsesWith helper and use it. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 30 Aug 2019 11:23:10 +0000 (11:23 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 30 Aug 2019 11:23:10 +0000 (11:23 +0000)
commit43b1e51a9bb9658e34c84a40b0abfb1f4d63c3f3
tree202e30c7ac8ef4456bedefcb5d14ba76d916caee
parentc5c61119338f6cc4ef8b947deef620b1328794d9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370463 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachinePipeliner.cpp