[PATCH] D115690: [SystemZ] Implement orderFrameObjects().
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 13 18:11:15 PST 2021
jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added subscribers: pengfei, hiraditya.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
By reordering the objects on the stack frame after looking at the users, a better utilization of displacement operands will result. This means less needed Load Address instructions for the loading/storing of those objects.
This is still a work in progress, but the new test case works where an LAY is eliminated.
(Inspired by X86FrameLowering::orderFrameObjects().)
https://reviews.llvm.org/D115690
Files:
llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
llvm/lib/Target/SystemZ/SystemZFrameLowering.h
llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
llvm/lib/Target/SystemZ/SystemZInstrInfo.h
llvm/test/CodeGen/SystemZ/frame-27.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115690.394100.patch
Type: text/x-patch
Size: 10020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211214/e9c8b905/attachment.bin>
More information about the llvm-commits
mailing list