Go to file
Jingyue Wu 77b5b385ee [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
2015-07-01 20:08:06 +00:00
clang [modules] Don't make out-of-line member specializations of an instantiated 2015-07-01 19:32:54 +00:00
clang-tools-extra [clang-tidy] minor coding style tweak. make functions static. 2015-07-01 13:29:27 +00:00
compiler-rt [asan] Suppress read_binary_name_regtest.c test failure on unsupported hosts. 2015-06-30 21:28:55 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Properly initialize Module pointer 2015-06-27 12:35:54 +00:00
libcxx Mark N4508, LWG#2407, and LWG#2470 as complete. I don't see that 2470 requires any changes to the library. 2015-06-30 20:06:00 +00:00
libcxxabi fallback_malloc: silence conversion warning (NFC) 2015-06-03 17:25:35 +00:00
libunwind Fix unw_getcontext() return value on AArch64. 2015-06-25 15:12:46 +00:00
lld Update for llvm api change. 2015-07-01 12:56:33 +00:00
lldb When I introduced hard-coded formatters, I made them non-cacheable 2015-07-01 20:06:40 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm [NVPTX] Move NVPTXPeephole after NVPTXPrologEpilogPass 2015-07-01 20:08:06 +00:00
openmp Fix OMPT event_barrer_end 2015-07-01 15:16:04 +00:00
polly Update isl to isl-0.15-30-g3518765 2015-06-30 08:22:14 +00:00