diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-27 11:44:53 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-27 13:57:06 +0100 |
commit | 016d91ccbd4d434aa90fbfa6fd28e9da1abc9279 (patch) | |
tree | 6f5bd8ac2fe4db9052351fa2dd0f527074a0664d /llvm/lib/CodeGen/IfConversion.cpp | |
parent | fa9439fac84ea4eb4050aa1ae150c0ec2cf86c20 (diff) | |
download | llvm-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/IfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 7845573..77fa128 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -1851,7 +1851,7 @@ bool IfConverter::IfConvertDiamondCommon( while (NumDups1 != 0) { // Since this instruction is going to be deleted, update call // site info state if the instruction is call instruction. - if (DI2->isCandidateForCallSiteEntry()) + if (DI2->shouldUpdateCallSiteInfo()) MBB2.getParent()->eraseCallSiteInfo(&*DI2); ++DI2; @@ -1900,7 +1900,7 @@ bool IfConverter::IfConvertDiamondCommon( // Since this instruction is going to be deleted, update call // site info state if the instruction is call instruction. - if (DI1->isCandidateForCallSiteEntry()) + if (DI1->shouldUpdateCallSiteInfo()) MBB1.getParent()->eraseCallSiteInfo(&*DI1); // skip dbg_value instructions |