[all-commits] [llvm/llvm-project] 2fdf96: [GlobalISel] Explicitly fail trying to translate `...

zero9178 via All-commits all-commits at lists.llvm.org
Tue Aug 30 15:47:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fdf963dafdf4cc31112e3881c8933c5d5b5451d
      https://github.com/llvm/llvm-project/commit/2fdf963dafdf4cc31112e3881c8933c5d5b5451d
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-08-31 (Wed, 31 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
    A llvm/test/CodeGen/AArch64/GlobalISel/pr57349.ll

  Log Message:
  -----------
  [GlobalISel] Explicitly fail trying to translate `gc.statepoint` and related intrinsics

The provided testcase would previously fail with an assertion due to later down below trying to allocate registers for `token` return types and arguments. This is especially problematic as the process would then exit instead of falling back to using FastIsel.

This patch fixes that by simply explicitly failing translation if either of these intrinsics are encountered.

Fixes https://github.com/llvm/llvm-project/issues/57349

Differential Revision: https://reviews.llvm.org/D132974




More information about the All-commits mailing list