[all-commits] [llvm/llvm-project] a2ae14: Making Instrumentation aware of LoopNest Pass

aeubanks via All-commits all-commits at lists.llvm.org
Mon May 24 20:26:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2ae14514a26bda6d8dae11e56f3186931b8d8c7
      https://github.com/llvm/llvm-project/commit/a2ae14514a26bda6d8dae11e56f3186931b8d8c7
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-05-24 (Mon, 24 May 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
    A llvm/test/Other/loopnest-callback.ll

  Log Message:
  -----------
  Making Instrumentation aware of LoopNest Pass

Intrumentation callbacks are not made aware of LoopNest passes. From the loop pass manager, we can pass the outermost loop of the LoopNest to instrumentation in case of LoopNest passes.

The current patch made the change in two places in StandardInstrumentation.cpp. I will submit a proper patch where the OuterMostLoop is passed from the LoopPassManager to the call backs. That way we will avoid making changes at multiple places in StandardInstrumentation.cpp.

A testcase also will be submitted.

Reviewed By: aeubanks

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




More information about the All-commits mailing list