RegisterCoalescer: Do not look for regclass of IMPLICIT_DEF.
authorMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 22:05:12 +0000 (22:05 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 22:05:12 +0000 (22:05 +0000)
commit1f67650f7755a22342265e025d8f3bc16c4cc3f9
tree731f8874c2d058ff02ac58e653589acb1fd7fdc8
parent0638f4e1150f77b25aef57b0728aa95add4a670c
RegisterCoalescer: Do not look for regclass of IMPLICIT_DEF.

IMPLICIT_DEF is a generic instruction and has no (fixed) output register
class defined. The rematerialization code of the register coalescer
should not scan the instruction description for a register class.

This fixes a problem showing up in
test/CodeGen/R600/subreg-coalescer-crash.ll with subregister liveness
enabled.

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