[PATCH] D41762: [DWARF] Incorrect prologue end line record.
Carlos Alberto Enciso via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 07:00:28 PST 2018
CarlosAlbertoEnciso added a comment.
First test case:
-enable-shrink-wrap=false
# %bb.0: # %entry
pushq %rax
movl %edi, %eax
cmpl %esi, %eax
jge .LBB0_2
# %bb.1: # %if.then
movl %eax, 4(%rsp)
leaq 4(%rsp), %rsi
xorl %edi, %edi
callq _Z11doSomethingiPi
.LBB0_2: # %if.end
popq %rcx
retq
-enable-shrink-wrap=true
# %bb.0: # %entry
movl %edi, %eax
cmpl %esi, %eax
jge .LBB0_2
# %bb.1: # %if.then
pushq %rax
movl %eax, 4(%rsp)
leaq 4(%rsp), %rsi
xorl %edi, %edi
callq _Z11doSomethingiPi
addq $8, %rsp
.LBB0_2: # %if.end
retq
The following instructions have changed and moved:
'pushq %rax' move from %bb.0 to %bb.1
'popq %rcx' changed into 'addq $8, %rsp',
https://reviews.llvm.org/D41762
More information about the llvm-commits
mailing list