[VE] Optimize prologue/epilogue instructions about GOT
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 23 Nov 2020 07:12:39 +0000 (16:12 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 30 Nov 2020 17:22:31 +0000 (02:22 +0900)
commit6834b3d6d52a4083113eea52e2afb4d2c915602c
tree185d9e728be2e28bbaa197cc31edc43d108fba45
parent6fe610535f4e0654766a1ace6acafc22150c951d
[VE] Optimize prologue/epilogue instructions about GOT

Optimize prologue/epilogue instructions if a given function use GOT but
do not call other functions by eliminating FP.  Previously, we had wrong
implementations taken from other architectures.  Update regression tests
also.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D92313
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/test/CodeGen/VE/Scalar/br_jt.ll
llvm/test/CodeGen/VE/Scalar/function_prologue_epilogue.ll
llvm/test/CodeGen/VE/Scalar/pic_access_data.ll
llvm/test/CodeGen/VE/Scalar/pic_access_static_data.ll
llvm/test/CodeGen/VE/Scalar/stackframe_nocall.ll