[PATCH] D80580: Separate Peeling Properties into its own struct
Sidharth Baveja via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 26 14:45:01 PDT 2020
sidbav added a comment.
@fhahn I think a follow-up patch will take a little bit of time to develop so here is a quick example.
for (i = 0; i < 10; ++i)
a[i] = a[i] + 3;
for (j = 1; j < 10; ++j)
b[j] = b[j] + 5;
Here is we can make use of peeling, and then fuse the two loops together. We can peel off the 0th iteration of the loop i, and then combine loop i and j for i = 1 to 10.
a[0] = a[0] +3;
for (i = 1; i < 10; ++i) {
a[i] = a[i] + 3;
b[i] = b[i] + 5;
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80580/new/
https://reviews.llvm.org/D80580
More information about the llvm-commits
mailing list