This is an archive of the discontinued LLVM Phabricator instance.

Remove redundant TargetFrameLowering::getFrameIndexOffset virtual function.
ClosedPublic

Authored by jyknight on Aug 14 2015, 3:09 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

jyknight updated this revision to Diff 32191.Aug 14 2015, 3:09 PM
jyknight retitled this revision from to Remove redundant TargetFrameLowering::getFrameIndexOffset virtual function..
jyknight updated this object.
jyknight added a reviewer: rnk.
jyknight added a subscriber: llvm-commits.
jyknight updated this revision to Diff 32193.Aug 14 2015, 3:13 PM

Oops forgot to clang-format first; fixed.

rnk accepted this revision.Aug 14 2015, 3:39 PM
rnk edited edge metadata.

lgtm

This adds a bunch of unused variables, but they should've been red flags anyway.

lib/Target/X86/X86FrameLowering.cpp
1199–1201 ↗(On Diff #32193)

I guess adding the outparam here would simplify the calling register info code.

lib/Target/X86/X86RegisterInfo.cpp
495–496 ↗(On Diff #32193)

Currently, no. This code handles fixed stack objects (FI < 0) and AfterFPPop, while the frame lowering code does not. Eventually, maybe. :)

This revision is now accepted and ready to land.Aug 14 2015, 3:39 PM
jyknight added inline comments.Aug 14 2015, 7:33 PM
lib/Target/X86/X86RegisterInfo.cpp
495–496 ↗(On Diff #32193)

Added that information in a comment on X86 getFrameIndexReference.

This revision was automatically updated to reflect the committed changes.