Skip to content

[P1] Transform Ctrl to Data Flow Error #113

@ShangkunLi

Description

@ShangkunLi

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnew featureNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions