forked from csmith-project/creduce
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Enable to build reduce-array-dim pass
This pass reduces the dimension of an array. Each transformation iteration reduces one dimension in the following way: int a[2][3][4]; void foo(void) {... a[1][2][3] ... } ===> int a[2][3 * 4]; void foo(void) {... a[1][3 * 2 + 3] ... } The binary operations will be computed to constant during the transformation if possible. Array fields are not handled right now. Also, this pass only works with ConstantArrayType and IncompleteArrayType.
- Loading branch information
1 parent
fc36eca
commit 18ce1a6
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters