[all-commits] [llvm/llvm-project] 435bce: [GISel] Add debug counter to force sdag fallback (...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jan 17 00:33:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435bcea83bd5fc3e4195fc811d89b2de0163d8e5
      https://github.com/llvm/llvm-project/commit/435bcea83bd5fc3e4195fc811d89b2de0163d8e5
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-01-17 (Wed, 17 Jan 2024)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/counter-fallback.ll

  Log Message:
  -----------
  [GISel] Add debug counter to force sdag fallback (#78257)

Add a debug counter that allows forcing an sdag fallback after a certain
number of functions.

The intended use-case is to bisect which function gets miscompiled by
global isel using `-debug-counter=globalisel-count=N` (in cases where
sdag doesn't also miscompile it, of course).

The "falling back" debug line is printed unconditionally, because using
`-debug-only` is usually too spammy for the intended purpose.




More information about the All-commits mailing list