aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>2020-02-27 11:44:53 +0100
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>2020-02-27 13:57:06 +0100
commit016d91ccbd4d434aa90fbfa6fd28e9da1abc9279 (patch)
tree6f5bd8ac2fe4db9052351fa2dd0f527074a0664d /llvm/lib/CodeGen/BranchFolding.cpp
parentfa9439fac84ea4eb4050aa1ae150c0ec2cf86c20 (diff)
downloadllvm-016d91ccbd4d434aa90fbfa6fd28e9da1abc9279.zip
llvm-016d91ccbd4d434aa90fbfa6fd28e9da1abc9279.tar.gz
llvm-016d91ccbd4d434aa90fbfa6fd28e9da1abc9279.tar.bz2
[CallSiteInfo] Handle bundles when updating call site info
This will address the issue: P8198 and P8199 (from D73534). The methods was not handle bundles properly. Differential Revision: https://reviews.llvm.org/D74904
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index f5b8329..3f83a3e 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -170,7 +170,7 @@ void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) {
// Update call site info.
std::for_each(MBB->begin(), MBB->end(), [MF](const MachineInstr &MI) {
- if (MI.isCandidateForCallSiteEntry())
+ if (MI.shouldUpdateCallSiteInfo())
MF->eraseCallSiteInfo(&MI);
});
// Remove the block.