diff options
| author | Tobias Grosser <tobias@grosser.es> | 2014-04-15 20:14:57 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2014-04-15 20:14:57 +0000 |
| commit | 364c136d08d19c618f176dc3722968e4e93f1b33 (patch) | |
| tree | 63e12152b37bd7878587ae7da7769a9df87273b0 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 399093276c9af10ab1afe5740f11fc90eed7ae63 (diff) | |
Dependences: Do not fail in case a schedule eliminates all dependences
The following example shows a non-parallel loop
void f(int a[]) {
int i;
for (i = 0; i < 10; ++i)
A[i] = A[i+5];
}
which, in case we import a schedule that limits the iteration domain
to 0 <= i < 5, becomes parallel. Previously we crashed in such cases, now we
just recognize it as parallel.
This fixes http://llvm.org/PR19435
Reported-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
llvm-svn: 206318
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
