diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2024-01-26 22:33:17 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2024-01-26 22:33:17 +0100 |
commit | 07a1925b8b92f29880be4030630ed5053783708f (patch) | |
tree | 7c197e5a25ee13b47b79d83772969616e35b03fe /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 6f97e6bcf71d5cb6130d74d75f1db87e63be2c8d (diff) | |
download | llvm-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.cpp | 3 |
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; |