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

[LoopInterchange] Forbid interchange if load store type wider than element type #77885

Closed
wants to merge 1 commit into from

Commits on Jan 12, 2024

  1. [LoopInterchange] Forbid interchange if load store type wider than el…

    …ement type
    
    Consider the following case, interchange is not valid as the store type(int) is
    wider than the array element type(char).
    
      char p[7];
      for (int j = 0; j < 2; ++j)
        for (int i = 0; i < 2; ++i)
          *((int*)&p[2*i+j]) = 2*i+j+1;
    ShivaChen committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    db710e4 View commit details
    Browse the repository at this point in the history