AMDGPU: Extract full 64-bit subregister and use subregs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Sep 2015 17:03:29 +0000 (17:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 9 Sep 2015 17:03:29 +0000 (17:03 +0000)
commit92a899b6606c06d2705170f0d7d9ab95d4e42d16
treebd48ba087acd82fae817f4a15d4e92704a1ef223
parent9a4bcd9558dc15a5eb38207dc85bac3ee3a8332a
AMDGPU: Extract full 64-bit subregister and use subregs

Instead of extracting both 32-bit components from the 128-bit
register. This produces fewer copies and is easier for
the copy peephole optimizer to understand and see the actual uses
as extracts from a reg_sequence.

This avoids needing to handle subregister composing in the
PeepholeOptimizer's ValueTracker for this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247162 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp