search for: localcount

Displaying 4 results from an estimated 4 matches for "localcount".

2018 Sep 12
3
Generalizing load/store promotion in LICM
...cated stores in loop exits The basic idea is that we don't worry about solving the legality question above, and just insert a store which is predicated on a condition which is true exactly when the original store ran.  In pseudo code, this looks something like: bool StoreLegal = false; int LocalCount = g_count; for (int = 0; i < N; i++)   if (a[i] == 0) {     LocalCount++;     StoreLegal = true;   } if (StoreLegal) g_count = LocalCount; There are two obvious concerns here: 1. The predicated store might be expensive in practice - true for most current architectures. 2. We''...
2018 Sep 13
3
Generalizing load/store promotion in LICM
...that we don't worry about solving the legality > question above, and just insert a store which is predicated on a > condition which is true exactly when the original store ran.  In > pseudo code, this looks something like: > > bool StoreLegal = false; > int LocalCount = g_count; > for (int = 0; i < N; i++) >   if (a[i] == 0) { >     LocalCount++; >     StoreLegal = true; >   } > if (StoreLegal) g_count = LocalCount; > > There are two obvious concerns here: > > 1. The predicated store might be expe...
2018 Sep 14
2
Generalizing load/store promotion in LICM
...edicated stores in loop exits The basic idea is that we don't worry about solving the legality question above, and just insert a store which is predicated on a condition which is true exactly when the original store ran. In pseudo code, this looks something like: bool StoreLegal = false; int LocalCount = g_count; for (int = 0; i < N; i++) if (a[i] == 0) { LocalCount++; StoreLegal = true; } if (StoreLegal) g_count = LocalCount; There are two obvious concerns here: 1. The predicated store might be expensive in practice - true for most current architectures. 2. We''re...
2018 Sep 18
1
Generalizing load/store promotion in LICM
...t solving the legality >>> question above, and just insert a store which is predicated on a condition >>> which is true exactly when the original store ran. In pseudo code, this >>> looks something like: >>> >>> bool StoreLegal = false; >>> int LocalCount = g_count; >>> for (int = 0; i < N; i++) >>> if (a[i] == 0) { >>> LocalCount++; >>> StoreLegal = true; >>> } >>> if (StoreLegal) g_count = LocalCount; >>> >>> There are two obvious concerns here: >>> &gt...