[llvm] [BPF] Remove 'may_goto 0' instructions (PR #123482)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 21:00:51 PST 2025
================
@@ -682,6 +685,56 @@ bool BPFMIPreEmitPeephole::insertMissingCallerSavedSpills() {
return Changed;
}
+bool BPFMIPreEmitPeephole::removeMayGotoZero() {
----------------
yonghong-song wrote:
Indeed, enabling -DLLVM_ENABLE_ASSERTIONS=ON can expose the issue. The reason is due to one basic block is empty and we need to check that.
I just updated a new version to fix this.
https://github.com/llvm/llvm-project/pull/123482
More information about the llvm-commits
mailing list