[llvm-commits] [llvm] r132224 - in /llvm/trunk: lib/CodeGen/AsmPrinter/AsmPrinter.cpp test/DebugInfo/X86/subreg.ll

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Fri May 27 19:57:17 PDT 2011


> I am confused here. What are you trying to do in this loop ?

We have a value in register X, but register X has no dwarf number. There 
are two cases where we should still be able to encode the location

*) X is part of a larger register that has a dwarf number
*) X is composed of smaller registers that all have dwarf numbers

The loop is trying to cover the first case by looking for a 
superregister that has a dwarf number. For example, in 32 bit mode it 
will find EAX if the original register is AX.

> -
> Devang

Cheers,
Rafael



More information about the llvm-commits mailing list