This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Fix offset calculation in ARMBaseRegisterInfo::needsFrameBaseReg
ClosedPublic

Authored by john.brawn on Mar 13 2015, 5:02 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn updated this revision to Diff 21920.Mar 13 2015, 5:02 AM
john.brawn retitled this revision from to [ARM] Fix offset calculation in ARMBaseRegisterInfo::needsFrameBaseReg.
john.brawn updated this object.
john.brawn edited the test plan for this revision. (Show Details)
john.brawn set the repository for this revision to rL LLVM.
john.brawn added a subscriber: Unknown Object (MLST).
jmolloy accepted this revision.Mar 17 2015, 8:40 AM
jmolloy added a reviewer: jmolloy.
jmolloy added a subscriber: jmolloy.

Hi John,

This LGTM.

James

This revision is now accepted and ready to land.Mar 17 2015, 8:40 AM

Hi John,

This LGTM.

James

Thanks. Could you commit this for me please?

This revision was automatically updated to reflect the committed changes.