OSDN Git Service

AMDGPU: Improve splitting 64-bit bit ops by constants
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Sep 2016 15:19:03 +0000 (15:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Sep 2016 15:19:03 +0000 (15:19 +0000)
commit8bc95d0a47445b245225bb83aaf0cbf8e0362aa0
tree45a5358afde1488e193ae716fb217c3cff53204d
parentbe3fec6cf2347af1e9a7b8fdddad9d9b8b72c99b
AMDGPU: Improve splitting 64-bit bit ops by constants

This addresses a TODO to handle operations besides and. This
also starts eliminating no-op operations with a constant that
can emerge later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281488 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.h
lib/Target/AMDGPU/SIFoldOperands.cpp
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIISelLowering.h
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/and.ll
test/CodeGen/AMDGPU/bitreverse.ll
test/CodeGen/AMDGPU/bswap.ll
test/CodeGen/AMDGPU/constant-fold-mi-operands.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/ctpop64.ll
test/CodeGen/AMDGPU/or.ll
test/CodeGen/AMDGPU/shift-and-i128-ubfe.ll
test/CodeGen/AMDGPU/sint_to_fp.i64.ll
test/CodeGen/AMDGPU/xor.ll