Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFG gen fail with select inst in operandTypeFor #7

Open
KelvinChung2000 opened this issue Mar 26, 2024 · 0 comments
Open

DFG gen fail with select inst in operandTypeFor #7

KelvinChung2000 opened this issue Mar 26, 2024 · 0 comments

Comments

@KelvinChung2000
Copy link

I am trying to run the following benchmark:

int main(){

    #define N 9

    int A[N];
    int i;
    int tmp;
    int c   = 5;
    int sum = 0;

    for(i = 0; i < N; i++) {
        A[i] = i;
    }

    for (i = 0; i < N; i++) {
        //DFGLoop: loop
        tmp = A[i] * c;
        if (tmp > 5) {
            sum = tmp + sum;
        }
    }

    return sum;
}

The DFG gen fails with Unhandled case for operand setting, and I have done some debugging; it is due to operandTypeFor not handling the SELECT instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant