Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 4fa9291

Browse files
authored
[mlir:python] Compute get_op_result_or_value in PyOpView's constructor. (#123953)
This logic is in the critical path for constructing an operation from Python. It is faster to compute this in C++ than it is in Python, and it is a minor change to do this. This change also alters the API contract of _ods_common.get_op_results_or_values to avoid calling get_op_result_or_value on each element of a sequence, since the C++ code will now do this. Most of the diff here is simply reordering the code in IRCore.cpp.
1 parent 0772e08 commit 4fa9291

File tree

3 files changed

+239
-202
lines changed

3 files changed

+239
-202
lines changed

0 commit comments

Comments
 (0)