Teach computeRegisterProperties() to compute "representative" register class for...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 19 Jul 2010 18:47:01 +0000 (18:47 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 19 Jul 2010 18:47:01 +0000 (18:47 +0000)
commit46dcb57e18884099ca6ad2aebb81fd7e1513c1f6
tree2c2ee79becfba126da6a32938918528d49271886
parent9529a1c3dd9946c1e63075f4bf146a731769ebe2
Teach computeRegisterProperties() to compute "representative" register class for legal value types. A "representative" register class is the largest legal super-reg register class for a value type. e.g. On i386, GR32 is the rep register class for i8 / i16 / i32; on x86_64 it would be GR64.

This property will be used by the register pressure tracking instruction scheduler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108735 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp