This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54841] New: Bad optimization on stack fill before call on ARM
- From: "vova7890 at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Oct 2012 23:22:59 +0000
- Subject: [Bug target/54841] New: Bad optimization on stack fill before call on ARM
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54841
Bug #: 54841
Summary: Bad optimization on stack fill before call on ARM
Classification: Unclassified
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vova7890@mail.ru
GCC generating not best asm listing when before calling to function, he needs
to pass into a stack registers already setted before this, and it only needed
to pass it. Gcc passing it by str instruction. For example:
STR R6, [SP, #4]
STR R4, [SP]
It can be faster and smaller with this code:
STMEA SP, {R4, R6}
---
Thanks