diff options
author | Jeffrey Byrnes <jeffrey.byrnes@amd.com> | 2025-03-03 17:30:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 17:30:12 -0800 |
commit | 3963d2148292145543cf83b13ff839a63995fdc2 (patch) | |
tree | 5be3cdf3184e138cb5b952bf88a84fe5b24057f2 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | bf9bf291a3174a3c7b50ec37ddf5782767827c61 (diff) | |
download | llvm-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.cpp | 2 |
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; } |