OSDN Git Service

VirtRegMap: Add undef flag when reading undefined subregisters.
authorMatthias Braun <matze@braunis.de>
Tue, 16 Jun 2015 18:22:28 +0000 (18:22 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 16 Jun 2015 18:22:28 +0000 (18:22 +0000)
commit944aaeb28b7e4c64dc0b4cb049b440a6319478ce
tree392d5db73e0f28be42be7e17cfd3487bbe971e16
parentff881427ec2336a561d63d25498741e980b18358
VirtRegMap: Add undef flag when reading undefined subregisters.

While completely undefined registers are easy to catch and get their
<undef> flag early in ProcessImplicitDefs/RegisterCoalescer reading from
a partially defined register where just the subreg happens to be
undefined is harder to catch so we only add the undef flag in the
virtual register rewriting step.

No testcase as I cannot reproduce the problem on any of the in-tree targets at
the moment.

This fixes rdar://21387089

Differential Revision: http://reviews.llvm.org/D10470

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239838 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp