mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 07:59:33 +00:00
add a note
llvm-svn: 34202
This commit is contained in:
parent
7b47556f5c
commit
216d889852
@ -868,3 +868,32 @@ _f2:
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
This code:
|
||||
|
||||
void test(int X) {
|
||||
if (X) abort();
|
||||
}
|
||||
|
||||
is currently compiled to (with -static):
|
||||
|
||||
_test:
|
||||
subl $12, %esp
|
||||
cmpl $0, 16(%esp)
|
||||
jne LBB1_1 #cond_true
|
||||
addl $12, %esp
|
||||
ret
|
||||
LBB1_1: #cond_true
|
||||
call L_abort$stub
|
||||
|
||||
It would be better to produce:
|
||||
|
||||
_test:
|
||||
subl $12, %esp
|
||||
cmpl $0, 16(%esp)
|
||||
jne L_abort$stub
|
||||
addl $12, %esp
|
||||
ret
|
||||
|
||||
This can be applied to any no-return function call that takes no arguments etc.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user