[PATCH] D140564: [IPSCCP] Create a Pass parameter to control specialization of functions.

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 02:45:48 PST 2022


chill added inline comments.


================
Comment at: llvm/test/Transforms/FunctionSpecialization/function-specialization.ll:1
-; RUN: opt -passes=ipsccp -specialize-functions -func-specialization-size-threshold=3 -S < %s | FileCheck %s
+; RUN: opt -passes="ipsccp<func-spec>" -func-specialization-size-threshold=3 -S < %s | FileCheck %s
+; RUN: opt -passes=ipsccp -specialize-functions=true -func-specialization-size-threshold=3 -S < %s | FileCheck %s
----------------
For completeness, I'd suggest a few more run lines, so ultimately we cover:

| **Passes** | **Options** |
| `ipsccp` | none | +
| `ipsccp` |  `-specialize-functions=true` |
| `ipsccp` |  `-specialize-functions=false` |
| `ipsccp<func-spec>` | none | +
| `ipsccp<func-spec>` | `-specialize-functions=false` |
| `ipsccp<no-func-spec>` | none |
| `ipsccp<no-func-spec>` | `-specialize-functions=true` | +





Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140564



More information about the llvm-commits mailing list