OSDN Git Service

LiveRegMatrix: Fix some subreg interference checks
authorMatthias Braun <matze@braunis.de>
Thu, 2 Mar 2017 00:35:08 +0000 (00:35 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 2 Mar 2017 00:35:08 +0000 (00:35 +0000)
commit0e90d42fceb95c6aff240ed3c276db01c67c3159
tree1e682288eb80080e2d97a61ba4bf5fb07b6702d7
parent1174171d1f09234c963900905fef0844af3c55c1
LiveRegMatrix: Fix some subreg interference checks

Surprisingly, one of the three interference checks in LiveRegMatrix was
using the main live range instead of the apropriate subregister range
resulting in unnecessarily conservative results.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296722 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveRegMatrix.h
lib/CodeGen/LiveRegMatrix.cpp
test/CodeGen/AMDGPU/add.v2i16.ll
test/CodeGen/AMDGPU/br_cc.f16.ll
test/CodeGen/AMDGPU/fneg-combines.ll
test/CodeGen/AMDGPU/insert_vector_elt.v2i16.ll
test/CodeGen/AMDGPU/sub.v2i16.ll
test/CodeGen/AMDGPU/subreg_interference.mir [new file with mode: 0644]