diff options
author | Jingyue Wu <jingyue@google.com> | 2015-07-01 20:08:06 +0000 |
---|---|---|
committer | Jingyue Wu <jingyue@google.com> | 2015-07-01 20:08:06 +0000 |
commit | 77b5b385ee4f727a166eb5bd5175e396a17c1407 (patch) | |
tree | 268672316de1cab7e9e6a6a62e11f5dee9e0b76c /clang/lib/CodeGen/CodeGenFunction.h | |
parent | d4cb1dddebe5a65672d62fe379956f7324749fa4 (diff) | |
download | llvm-77b5b385ee4f727a166eb5bd5175e396a17c1407.zip llvm-77b5b385ee4f727a166eb5bd5175e396a17c1407.tar.gz llvm-77b5b385ee4f727a166eb5bd5175e396a17c1407.tar.bz2 |
[NVPTX] Move NVPTXPeephole after NVPTXPrologEpilogPass
Summary:
Offset of frame index is calculated by NVPTXPrologEpilogPass. Before
that the correct offset of stack objects cannot be obtained, which
leads to wrong offset if there are more than 2 frame objects. This patch
move NVPTXPeephole after NVPTXPrologEpilogPass. Because the frame index
is already replaced by %VRFrame in NVPTXPrologEpilogPass, we check
VRFrame register instead, and try to remove the VRFrame if there
is no usage after NVPTXPeephole pass.
Patched by Xuetian Weng.
Test Plan:
Strengthened test/CodeGen/NVPTX/local-stack-frame.ll to check the
offset calculation based on SP and SPL.
Reviewers: jholewinski, jingyue
Reviewed By: jingyue
Subscribers: jholewinski, llvm-commits
Differential Revision: http://reviews.llvm.org/D10853
llvm-svn: 241185
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions