OSDN Git Service

[AMDGPU] Ban i8 min3 promotion.
authorNeil Henning <neil.henning@amd.com>
Tue, 19 Mar 2019 15:50:24 +0000 (15:50 +0000)
committerNeil Henning <neil.henning@amd.com>
Tue, 19 Mar 2019 15:50:24 +0000 (15:50 +0000)
commit20c971d13116db3e11f0bdf5586c42ec1deacbfa
tree73892039a54e756155939c6a9b162a4761f12b31
parenta005e56632601c05aaba753a997f61663b9511f2
[AMDGPU] Ban i8 min3 promotion.

I found this really weird WWM-related case whereby through the WWM
transformations our isel lowering was trying to promote 2 min's into a
min3 for the i8 type, which our hardware doesn't support.

The new min3_i8.ll test case would previously spew the error:

PromoteIntegerResult #0: t69: i8 = SMIN3 t70, Constant:i8<0>, t68

Before the simple fix to our isel lowering to not do it for i8 MVT's.

Differential Revision: https://reviews.llvm.org/D59543

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/fmin3.ll
test/CodeGen/AMDGPU/max3.ll
test/CodeGen/AMDGPU/min3.ll