[all-commits] [llvm/llvm-project] ccc910: [OptBisect] Add flag to print IR when opt-bisect k...

aeubanks via All-commits all-commits at lists.llvm.org
Wed Sep 14 13:49:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccc9107ad6858424fcfc1c24f0264f82d351b9eb
      https://github.com/llvm/llvm-project/commit/ccc9107ad6858424fcfc1c24f0264f82d351b9eb
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M llvm/docs/OptBisect.rst
    M llvm/include/llvm/Passes/StandardInstrumentations.h
    M llvm/lib/Passes/StandardInstrumentations.cpp
    A llvm/test/Other/opt-bisect-print-ir-path.ll

  Log Message:
  -----------
  [OptBisect] Add flag to print IR when opt-bisect kicks in

-opt-bisect-print-ir-path=foo will dump the IR to foo when opt-bisect-limit starts skipping passes.

Currently we don't print the IR if the opt-bisect-limit is higher than the total number of times opt-bisect is called.

This makes getting the IR right before a bad transform easier.

Reviewed By: hans

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




More information about the All-commits mailing list