Issue |
92000
|
Summary |
Missed coalescing of adjacent writes to stack variables
|
Labels |
new issue
|
Assignees |
|
Reporter |
Bryce-MW
|
Here's a simple reproduction: https://godbolt.org/z/5dza4c787 (should be `mov qword ptr[rsp], 0`). I know that LLVM can coalesce known adjacent writes. The problem here is that these variables are not known to be adjacent until stack slot allocation which I know happens during target code generation so this isn't solvable at the IR level. I suspect that means that the solution would have to be per-target (currently, I can reproduce this on every arch that compiler explorer has though I am not proficient in non-x86_64 asm so I could be wrong).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs