diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-25 14:40:33 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-25 14:40:33 +0000 |
commit | 9c618dddcd075579cf4f157ba4a03d088c166dab (patch) | |
tree | 25c9f5ba1aa4fdc4e96faae87aec82f1ad0b0a30 /lib/Target/AMDGPU | |
parent | 5a813558fccf203e1f8733f4c8217a03fd87b430 (diff) | |
download | src-9c618dddcd075579cf4f157ba4a03d088c166dab.tar.gz src-9c618dddcd075579cf4f157ba4a03d088c166dab.zip |
Vendor import of llvm release_40 branch r296202:vendor/llvm/llvm-release_40-r296202
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=314258
svn path=/vendor/llvm/llvm-release_40-r296202/; revision=314259; tag=vendor/llvm/llvm-release_40-r296202
Diffstat (limited to 'lib/Target/AMDGPU')
-rw-r--r-- | lib/Target/AMDGPU/SIInstructions.td | 5 | ||||
-rw-r--r-- | lib/Target/AMDGPU/VOP1Instructions.td | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/AMDGPU/SIInstructions.td b/lib/Target/AMDGPU/SIInstructions.td index b86c04191189..38e31e75ee67 100644 --- a/lib/Target/AMDGPU/SIInstructions.td +++ b/lib/Target/AMDGPU/SIInstructions.td @@ -997,6 +997,11 @@ def : Pat < >; def : Pat < + (i1 (trunc i16:$a)), + (V_CMP_EQ_U32_e64 (S_AND_B32 (i32 1), $a), (i32 1)) +>; + +def : Pat < (i1 (trunc i64:$a)), (V_CMP_EQ_U32_e64 (S_AND_B32 (i32 1), (i32 (EXTRACT_SUBREG $a, sub0))), (i32 1)) diff --git a/lib/Target/AMDGPU/VOP1Instructions.td b/lib/Target/AMDGPU/VOP1Instructions.td index a15b9ceff2f4..8cae83cd9d1a 100644 --- a/lib/Target/AMDGPU/VOP1Instructions.td +++ b/lib/Target/AMDGPU/VOP1Instructions.td @@ -607,12 +607,6 @@ def : Pat< (COPY $src) >; -def : Pat< - (i1 (trunc i16:$src)), - (COPY $src) ->; - - def : Pat < (i16 (trunc i64:$src)), (EXTRACT_SUBREG $src, sub0) |