[all-commits] [llvm/llvm-project] e9e4fc: BPF: fix a bug in IRPeephole pass

yonghong-song via All-commits all-commits at lists.llvm.org
Mon Oct 18 10:19:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9e4fc0fd3e0780207c731a1f2b8f6aacd24e8f8
      https://github.com/llvm/llvm-project/commit/e9e4fc0fd3e0780207c731a1f2b8f6aacd24e8f8
  Author: Yonghong Song <yhs at fb.com>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M llvm/lib/Target/BPF/BPFIRPeephole.cpp

  Log Message:
  -----------
  BPF: fix a bug in IRPeephole pass

Commit 009f3a89d833 ("BPF: remove intrindics @llvm.stacksave()
and @llvm.stackrestore()") implemented IRPeephole pass to remove
llvm.stacksave()/stackrestore() instrinsics.
Buildbot reported a failure:
  UNREACHABLE executed at ../lib/IR/LegacyPassManager.cpp:1445!
which is:
  llvm_unreachable("Pass modifies its input and doesn't report it");

The code has changed but the implementation didn't return true
for changing. This patch fixed this problem.




More information about the All-commits mailing list