aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2024-01-26 22:33:17 +0100
committerNikita Popov <nikita.ppv@gmail.com>2024-01-26 22:33:17 +0100
commit07a1925b8b92f29880be4030630ed5053783708f (patch)
tree7c197e5a25ee13b47b79d83772969616e35b03fe /llvm/lib/CodeGen/BranchFolding.cpp
parent6f97e6bcf71d5cb6130d74d75f1db87e63be2c8d (diff)
downloadllvm-07a1925b8b92f29880be4030630ed5053783708f.zip
llvm-07a1925b8b92f29880be4030630ed5053783708f.tar.gz
llvm-07a1925b8b92f29880be4030630ed5053783708f.tar.bz2
Revert "Refactor recomputeLiveIns to operate on whole CFG (#79498)"
This reverts commit 59bf60519fc30d9d36c86abd83093b068f6b1e4b. Introduces a major compile-time regression.
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 9075fa4..a9f7835 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -2048,7 +2048,8 @@ bool BranchFolder::HoistCommonCodeInSuccs(MachineBasicBlock *MBB) {
FBB->erase(FBB->begin(), FIB);
if (UpdateLiveIns) {
- recomputeLiveIns(*MBB->getParent());
+ recomputeLiveIns(*TBB);
+ recomputeLiveIns(*FBB);
}
++NumHoist;