https://bugs.llvm.org/show_bug.cgi?id=48982
Bug ID: 48982
Summary: [MIPS] Failure to optimize out function prologue and
epilogue
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: MIPS
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
void f(){}
With -O3, GCC generates this:
f():
jrc $31
LLVM generates this:
f():
daddiu $sp, $sp, -16
sd $ra, 8($sp) # 8-byte Folded Spill
sd $fp, 0($sp) # 8-byte Folded Spill
move $fp, $sp
move $sp, $fp
ld $fp, 0($sp) # 8-byte Folded Reload
ld $ra, 8($sp) # 8-byte Folded Reload
jr $ra
daddiu $sp, $sp, 16
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs