[LLVMdev] Live Intervals and Register Classes
David Greene
greened at obbligato.org
Fri May 11 16:14:19 PDT 2007
David Greene wrote:
> If I take the first LiveRange LR from LI, look up its
> instruction/operand at "start" and then look at its
> TargetOperandInfo and send TOI::RegClass to
> MRegisterInfo:getRegClass, is that sufficient.
>
> It seems way overly complicated.
Umm...yeah. That way be dragons. :-/
Fortunately, I found
MachineFunction::getSSARegMap()->getRegClass(LI.reg) which
works swimmingly.
-Dave
More information about the llvm-dev
mailing list