-
Notifications
You must be signed in to change notification settings - Fork 15
[P1] Transform Ctrl to Data Flow Error #113
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't workingnew featureNew feature or requestNew feature or request
Description
For now, the --transform-ctrl-to-data-flow pass cannot transform the case modeling backpressure like below:
int simple_loop_with_backpressure(int data[128]) {
int output = 0;
int threshold = 1000;
for (int i = 0; i < 128; ++i) {
if (output >= threshold) {
// Simulate backpressure by halting processing
output -= 5;
}
output += data[i] * 2 + 1;
}
return output;
}
We need a more robust way to handle it.
I have fixed it and will push a pr soon.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnew featureNew feature or requestNew feature or request