[llvm] [Passes][Inliner] Handle optsize/minsize via attributes only (PR #190168)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 00:51:36 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/37287

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/Inline/ML/ml-test-development-mode.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 9
rm -rf /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp
# executed command: rm -rf /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp
# RUN: at line 10
rm -rf /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# executed command: rm -rf /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# RUN: at line 11
"/usr/bin/python3" /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/../../../../lib/Analysis/models/gen-inline-oz-test-model.py /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# executed command: /usr/bin/python3 /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/../../../../lib/Analysis/models/gen-inline-oz-test-model.py /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# .---command stdout------------
# | Output model to: [/b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel]
# | The model will always return: 1
# | Writing output spec to /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel/output_spec.json.
# `-----------------------------
# .---command stderr------------
# | 2026-04-10 07:49:23.776182: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
# | 2026-04-10 07:49:23.869827: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
# | 2026-04-10 07:49:23.869928: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
# | 2026-04-10 07:49:23.872528: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
# | 2026-04-10 07:49:23.890596: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
# | 2026-04-10 07:49:23.890962: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
# | To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
# | 2026-04-10 07:49:25.481836: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
# `-----------------------------
# RUN: at line 12
"/usr/bin/python3" /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/../../../../lib/Analysis/models/saved-model-to-tflite.py /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp
# executed command: /usr/bin/python3 /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/../../../../lib/Analysis/models/saved-model-to-tflite.py /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp
# .---command stderr------------
# | 2026-04-10 07:49:28.814553: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
# | 2026-04-10 07:49:28.901102: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
# | 2026-04-10 07:49:28.901254: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
# | 2026-04-10 07:49:28.903400: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
# | 2026-04-10 07:49:28.915795: I external/local_tsl/tsl/cuda/cudart_stub.cc:31] Could not find cuda drivers on your machine, GPU will not be used.
# | 2026-04-10 07:49:28.916156: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
# | To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
# | 2026-04-10 07:49:30.586052: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
# | Gym has been unmaintained since 2022 and does not support NumPy 2.0 amongst other critical functionality.
# | Please upgrade to Gymnasium, the maintained drop-in replacement of Gym, or contact the authors of your software and request that they upgrade.
# | See the migration guide at https://gymnasium.farama.org/introduction/migration_guide/ for additional information.
# | 2026-04-10 07:49:32.886996: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:378] Ignored output_format.
# | 2026-04-10 07:49:32.887100: W tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc:381] Ignored drop_control_dependency.
# | 2026-04-10 07:49:32.888750: I tensorflow/cc/saved_model/reader.cc:83] Reading SavedModel from: /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# | 2026-04-10 07:49:32.889587: I tensorflow/cc/saved_model/reader.cc:51] Reading meta graph with tags { serve }
# | 2026-04-10 07:49:32.889669: I tensorflow/cc/saved_model/reader.cc:146] Reading SavedModel debug info (if present) from: /b/ml-opt-dev-x86-64-b1/build/test/Transforms/Inline/ML/Output/ml-test-development-mode.ll.tmp_savedmodel
# | 2026-04-10 07:49:32.894309: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled
...

```

</details>

https://github.com/llvm/llvm-project/pull/190168


More information about the llvm-commits mailing list