[PATCH] D120782: [polly] Introduce -polly-print-* passes to replace -analyze.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 2 13:58:55 PST 2022


Meinersbur added a comment.

In D120782#3355237 <https://reviews.llvm.org/D120782#3355237>, @aeubanks wrote:

> for the remaining `-analyze -loops` tests, do the polly passes in those tests have new PM equivalents?
> `-passes='print<loops>'` should be a suitable replacement for `-loops -analyze`



name=CodeGen/single_loop_param_less_equal.ll
  ; RUN: opt %loadPolly -polly-codegen -loops -analyze < %s | FileCheck %s -check-prefix=LOOPS



name=CodeGen\loop_with_condition_nested.ll
  ; RUN: opt %loadPolly -basic-aa -polly-codegen -loops -analyze < %s | FileCheck %s -check-prefix=LOOPS

`-polly-codegen` does not emit anything with `-analyze`. It is testing which loops after `-polly-codegen`. Therefore, this could be equivalent using the NPM:

  ; RUN: opt %loadPolly -passes="function(scop(polly-codegen),print<loops>)" -disable-output < %s 2>&1 | FileCheck %s -check-prefix=LOOPS

However, it is failing due to how differently the NPM works.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120782/new/

https://reviews.llvm.org/D120782



More information about the llvm-commits mailing list