MachineScheduler: Ignore COPYs with undef/dead op in CopyConstrain mutation.
authorMatthias Braun <matze@braunis.de>
Mon, 4 Apr 2016 21:23:46 +0000 (21:23 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 4 Apr 2016 21:23:46 +0000 (21:23 +0000)
commit7511abd5c1c6a8adcd7609cca53446613310a6d9
tree88ea7e616803bb1ef23b6a0f668a79b5434fd1ea
parent571e3481e71c0b220886889355bd8badd6fe1cfd
MachineScheduler: Ignore COPYs with undef/dead op in CopyConstrain mutation.

There is no problem with the code today, but the fix will avoid a crash
in test/CodeGen/AMDGPU/subreg-coalescer-undef-use.ll once the
DetectDeadLanes pass is added.

llvm-svn: 265351
llvm/lib/CodeGen/MachineScheduler.cpp