diff options
author | Changpeng Fang <changpeng.fang@gmail.com> | 2018-12-21 20:57:34 +0000 |
---|---|---|
committer | Changpeng Fang <changpeng.fang@gmail.com> | 2018-12-21 20:57:34 +0000 |
commit | 6f539294b59e31fe7c7d36dafa07793b4a1fcc21 (patch) | |
tree | 9ada32623b884f2263378e6f67d833fa7f0498ee /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 4cc2113114d226757ce37b69dc6093bb17a5feb8 (diff) | |
download | llvm-6f539294b59e31fe7c7d36dafa07793b4a1fcc21.zip llvm-6f539294b59e31fe7c7d36dafa07793b4a1fcc21.tar.gz llvm-6f539294b59e31fe7c7d36dafa07793b4a1fcc21.tar.bz2 |
AMDGPU: Don't peel of the offset if the resulting base could possibly be negative in Indirect addressing.
Summary:
Don't peel of the offset if the resulting base could possibly be negative in Indirect addressing.
This is because the M0 field is of unsigned.
This patch achieves the similar goal as https://reviews.llvm.org/D55241, but keeps the optimization
if the base is known unsigned.
Reviewers:
arsemn
Differential Revision:
https://reviews.llvm.org/D55568
llvm-svn: 349951
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions