aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorJeffrey Byrnes <jeffrey.byrnes@amd.com>2025-03-03 17:30:12 -0800
committerGitHub <noreply@github.com>2025-03-03 17:30:12 -0800
commit3963d2148292145543cf83b13ff839a63995fdc2 (patch)
tree5be3cdf3184e138cb5b952bf88a84fe5b24057f2 /llvm/lib/CodeGen/MachineSink.cpp
parentbf9bf291a3174a3c7b50ec37ddf5782767827c61 (diff)
downloadllvm-3963d2148292145543cf83b13ff839a63995fdc2.zip
llvm-3963d2148292145543cf83b13ff839a63995fdc2.tar.gz
llvm-3963d2148292145543cf83b13ff839a63995fdc2.tar.bz2
[MachineSink] Fix typo in loop sinking (#127133)
Failure to sink a candidate should not block us from attempting to sink other candidates. There are mechanisms in place to handle the case where the failed to be sunk instruction uses an instruction that gets sunk (we do not delete the original instruction corresponding with the sunk instruction if it still has uses).
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 4f206a8a..173193b 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -919,7 +919,7 @@ bool MachineSinking::run(MachineFunction &MF) {
continue;
if (!aggressivelySinkIntoCycle(Cycle, *I, SunkInstrs))
- break;
+ continue;
EverMadeChange = true;
++NumCycleSunk;
}