This is an archive of the discontinued LLVM Phabricator instance.

X86FrameLowering: Fix getFrameIndexReference() for fixed objects
ClosedPublic

Authored by MatzeB on Apr 18 2017, 5:27 PM.

Details

Summary

Debug information is calculated with getFrameIndexReference() which was
missing some logic for the fixed object cases (= parameters on the stack).

The respective logic was already present in X86RegisterInfo::eliminateFrameIndex(). I'll submit separate patches to avoid the code duplication!

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB created this revision.Apr 18 2017, 5:27 PM
aprantl accepted this revision.Apr 18 2017, 6:13 PM

Thanks! This LGTM from the debug info side of things. (One comment inline)

test/CodeGen/X86/dbg-baseptr.ll
4 ↗(On Diff #95661)

Could you add the source code this was generated from as a comment? This helps with future upgrades.

This revision is now accepted and ready to land.Apr 18 2017, 6:13 PM
MatzeB added inline comments.Apr 18 2017, 6:39 PM
test/CodeGen/X86/dbg-baseptr.ll
4 ↗(On Diff #95661)

There's no sourcecode: I manually crafted this (unfortunately it turned out more complicated than I hoped with the debug info around)

okay — works for me.

This revision was automatically updated to reflect the committed changes.