AMDGPU: Reduce number of copies emitted
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 24 Sep 2015 07:16:37 +0000 (07:16 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 24 Sep 2015 07:16:37 +0000 (07:16 +0000)
commitbb9c0afde53073f3fcd30c851420d58c950127fa
tree8416c1e748399e186d425bc5511a775b0af3de03
parent71c9e7e6ce842155e4a6b4820d2f806e79e69758
AMDGPU: Reduce number of copies emitted

Instead of always inserting a copy in case
the super register is itself a subregister,
only extract to the super reg class if this is
actually the case.

This shouldn't really change codegen, but
makes looking at the output of SIFixSGPRCopies
easier to read.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248467 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/and.ll
test/CodeGen/AMDGPU/ctpop64.ll
test/CodeGen/AMDGPU/s_movk_i32.ll