Issue 52894
Summary [PowerPC] fatal error: error in backend: Incomplete scavenging after 2nd pass
Labels
Assignees
Reporter pkubaj
    clang version 13.0.0
FreeBSD 13.0-RELEASE
powerpc64le

Reduced test case:
```
float a[4096];
template <int b> struct d {
  enum { c = 1 << b } ak[c];
  void g();
};
int e;
void h(d<17>, int);
void i() {
  d<2> b;
  d<17> c;
  for (int f = 0; f < 4096; f++)
    a[f] = f;
  b.g();
  for (int f = 0; f < 4096; f++)
    a[f] = f;
  for (int f = 0; f < 4096; f++)
    a[f] = f * 4096;
  h(c, e);
}
```

Compile with:
`clang++13 -cc1 -triple powerpc64le-unknown-freebsd13.0 -emit-obj -target-cpu ppc64le -O2 -vectorize-loops organ-5b291c.cpp`

The issue doesn't happen after removing `-vectorize-loops` or after replacing `-O2` with `-O1`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to