Convert the last use of getPhysicalRegisterRegClass and remove it.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 12 Jul 2010 02:55:34 +0000 (02:55 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 12 Jul 2010 02:55:34 +0000 (02:55 +0000)
commit7e1b566322ecb5ff752c9a5f2feb503b6fb75262
treed22f10e0443db0539bbffe6e8a0a6fae29511348
parent688d58033a077dd05be830cd23f8d416ce1be59d
Convert the last use of getPhysicalRegisterRegClass and remove it.

AggressiveAntiDepBreaker should not be using getPhysicalRegisterRegClass. An
instruction might be using a register that can only be replaced with one from
a subclass of getPhysicalRegisterRegClass.

With this patch we use getMinimalPhysRegClass. This is correct, but
conservative. We should check the uses of the register and select the
largest register class that can be used in all of them.

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