In polly, after hoisting loop invariant loads outside loop, the alignment information for hoisted loads are missing, this patch restore them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Suggestion for a small improvement.
lib/CodeGen/IslNodeBuilder.cpp | ||
---|---|---|
945 ↗ | (On Diff #44801) | 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 | ||
---|---|---|
923 ↗ | (On Diff #44929) | I forgot. We should set the alingment here too. Sorry. |
lib/CodeGen/IslNodeBuilder.cpp | ||
---|---|---|
923 ↗ | (On Diff #44929) | Oh, sorry, I missed that one too. |