aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorZhaoQi <zhaoqi01@loongson.cn>2025-09-26 10:38:48 +0800
committerGitHub <noreply@github.com>2025-09-26 10:38:48 +0800
commitef876268b97d664a90dc0d9a044f518557270e3d (patch)
tree7d6987f8928f14ed7fa1d522d5a97f12bf86a106 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentce10516869b79180cfcb8b0fcb4b499f22bf026e (diff)
parent7275c178bd989bd431ae8aaff57d62d6fba1cc4f (diff)
downloadllvm-users/zhaoqi5/test-isxxxcheap.zip
llvm-users/zhaoqi5/test-isxxxcheap.tar.gz
llvm-users/zhaoqi5/test-isxxxcheap.tar.bz2
Merge branch 'main' into users/zhaoqi5/test-isxxxcheapusers/zhaoqi5/test-isxxxcheap
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 08a51b9..d4b64ab9 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -1802,6 +1802,12 @@ bool MachineBasicBlock::sizeWithoutDebugLargerThan(unsigned Limit) const {
return false;
}
+void MachineBasicBlock::removePHIsIncomingValuesForPredecessor(
+ const MachineBasicBlock &PredMBB) {
+ for (MachineInstr &Phi : phis())
+ Phi.removePHIIncomingValueFor(PredMBB);
+}
+
const MBBSectionID MBBSectionID::ColdSectionID(MBBSectionID::SectionType::Cold);
const MBBSectionID
MBBSectionID::ExceptionSectionID(MBBSectionID::SectionType::Exception);