[PATCH] D57541: [DAGCombiner] Eliminate dead stores to stack.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 31 13:38:57 PST 2019
courbet marked an inline comment as done.
courbet added inline comments.
================
Comment at: test/DebugInfo/COFF/inlining.ll:32
; ASM: .cv_inline_site_id 2 within 1 inlined_at 1 10 3
-; ASM: .cv_loc 2 1 3 7 # t.cpp:3:7
; ASM: .cv_loc 2 1 4 5 # t.cpp:4:5
----------------
Before:
```
addl $6, x(%rip)
addl $4, x(%rip)
movl $1, -4(%rsp)
leaq -4(%rsp), %rax
addl %eax, x(%rip)
addl $2, x(%rip)
addl $3, x(%rip)
addl $5, x(%rip)
addl $7, x(%rip)
retq
```
After:
```
addl $6, x(%rip)
addl $4, x(%rip)
leaq -4(%rsp), %rax
addl %eax, x(%rip)
addl $2, x(%rip)
addl $3, x(%rip)
addl $5, x(%rip)
addl $7, x(%rip)
```
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57541/new/
https://reviews.llvm.org/D57541
More information about the llvm-commits
mailing list