LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 36459 - MIR: Stack object without alignment causes div by 0 in estimateStackSize
Summary: MIR: Stack object without alignment causes div by 0 in estimateStackSize
Status: NEW
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: AArch64 (show other bugs)
Version: trunk
Hardware: PC All
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-20 10:50 PST by Francis Visoiu Mistrih
Modified: 2018-10-22 04:33 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
mir-crash (213 bytes, text/plain)
2018-02-20 10:50 PST, Francis Visoiu Mistrih
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Visoiu Mistrih 2018-02-20 10:50:57 PST
Created attachment 19916 [details]
mir-crash

The parser accepts it as the alignment is not mandatory.

We should come up with some default alignment or something similar.

AArch64FrameLowering::determineCalleeSaves
MachineFrameInfo::estimateStackSize
-> 153 	    Offset = (Offset+Align-1)/Align*Align;
Comment 1 Francis Visoiu Mistrih 2018-10-22 04:33:13 PDT
https://reviews.llvm.org/D53490