Skip to content

Commit acde3f7

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 77c780d commit acde3f7

File tree

5 files changed

+255
-221
lines changed

5 files changed

+255
-221
lines changed

0 commit comments

Comments
 (0)