[PATCH] [ARM] Fix offset calculation in ARMBaseRegisterInfo::needsFrameBaseReg
John Brawn
john.brawn at arm.com
Fri Mar 13 05:02:51 PDT 2015
The input offset to needsFrameBaseReg is a negative value below the top of the stack frame, but when converting to a positive offset from the bottom of the stack frame this value was negated, causing the final offset to be too large by twice the input offset's magnitude. Fix that by not negating the offset.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8316
Files:
lib/Target/ARM/ARMBaseRegisterInfo.cpp
test/CodeGen/ARM/ssp-data-layout.ll
test/CodeGen/Thumb/stack-access.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8316.21920.patch
Type: text/x-patch
Size: 5011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150313/2cb3cd60/attachment.bin>
More information about the llvm-commits
mailing list