search for: unrolljam

Displaying 1 result from an estimated 1 matches for "unrolljam".

2019 Apr 25
2
How to use the pass 'Unroll and Jam'
...< M; i++) { for (int j = 0; j < N; j++) { c[i][j] = a[i][j] + b[i][j]; } } return 0; } ``` 2) Create an LLVM IR file ./bin/clang -O1 loop.c -emit-llvm -S -o loop.ll 3) Run the 'unroll-and-jam' pass ./bin/opt -loop-unroll-and-jam loop.ll -S -o loop-unrolljam.ll I added the option '--debug-pass=Structure' to the opt, and I can see the 'Unroll and Jam loops' indeed executed by the Loop Pass Manager. ``` ModulePass Manager FunctionPass Manager Dominator Tree Construction Basic Alias Analysis (stateless AA impl)...