OSDN Git Service

AMDGPU: Fix constant bus use check with subregisters
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 11 Feb 2016 06:15:39 +0000 (06:15 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 11 Feb 2016 06:15:39 +0000 (06:15 +0000)
commitd581c6659195303616657332bd107ebce07082dc
tree837736d043c6078b95293351bf2dafca32009c35
parent33e18796f1aa25e4e4c1d8649aa4f17ef3dd96fa
AMDGPU: Fix constant bus use check with subregisters

If the two operands to an instruction were both
subregisters of the same super register, it would incorrectly
think this counted as the same constant bus use.

This fixes the verifier error in fmin_legacy.ll which
was missing -verify-machineinstrs.

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