In polly, after hoisting loop invariant loads outside loop, the alignment information for hoisted loads are missing, this patch restore them.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Suggestion for a small improvement.
| lib/CodeGen/IslNodeBuilder.cpp | ||
|---|---|---|
| 945 | Why do you try to find LoadInst after the call to "preloadUnconditionally" and set the alignment there instead of in the ditonally function when the load is actually created? I would suggest to change the last argument from AccInstTy to AccInst and set the alignment then inside the function. What do you say? | |
| lib/CodeGen/IslNodeBuilder.cpp | ||
|---|---|---|
| 918 | I forgot. We should set the alingment here too. Sorry. | |
| lib/CodeGen/IslNodeBuilder.cpp | ||
|---|---|---|
| 918 | Oh, sorry, I missed that one too. | |
I forgot. We should set the alingment here too. Sorry.