We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aed6d6 commit 546c090Copy full SHA for 546c090
llvm/lib/CodeGen/MachineSink.cpp
@@ -913,7 +913,7 @@ bool MachineSinking::isWorthBreakingCriticalEdge(
913
auto Res = CEMergeCandidates.try_emplace(Key, From);
914
// We wanted to sink the same register into the same block, consider it to
915
// be profitable.
916
- if (!Res.second) {
+ if (!Res.second && Res.first->second->isSuccessor(To)) {
917
// Return the source block that was previously held off.
918
DeferredFromBlock = Res.first->second;
919
return true;
0 commit comments