[tensor-descriptor]: Improve translation for make_tensor_ptr
operations in control flow
#4132
Milestone
make_tensor_ptr
operations in control flow
#4132
The current pass that transforms tensor descriptor API into block pointers has some limitation. In particular it fails to translate tensor descriptor loads that use descriptors which may be created in different control flow paths. Here is an example:
In this example the a_desc used by the load gets changed (at runtime) depending on whether the branch in the loop is taken or not. Currently this code pattern cannot be handled by the existing pass because it attempts to back propagate the offsets from the load operation to the make_tensor_descriptor operation which is not unique.
The text was updated successfully, but these errors were encountered: