Eliminate a couple of fields from TargetRegisterClass: SubRegClasses and SuperRegClas...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 22 Jan 2009 09:10:11 +0000 (09:10 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 22 Jan 2009 09:10:11 +0000 (09:10 +0000)
commit536ab130ec95cbb7bf30530251dafa7dfecc8471
treec971d4e06869171104e9756ab2bdab1ab0a25ed6
parente70909b8c94b18ae5fcfe8010251d2527704d58b
Eliminate a couple of fields from TargetRegisterClass: SubRegClasses and SuperRegClasses. These are not necessary. Also eliminate getSubRegisterRegClass and getSuperRegisterRegClass. These are slow and their results can change if register file names change. Just use TargetLowering::getRegClassFor() to get the right TargetRegisterClass instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62762 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodesEmit.cpp
lib/Target/X86/X86FastISel.cpp
utils/TableGen/FastISelEmitter.cpp
utils/TableGen/RegisterInfoEmitter.cpp