[llvm-commits] [llvm] r137250 - in /llvm/trunk: lib/CodeGen/LiveDebugVariables.cpp test/CodeGen/ARM/debug-info-sreg2.ll test/CodeGen/X86/dbg-value-isel.ll
Devang Patel
dpatel at apple.com
Wed Aug 10 14:42:00 PDT 2011
On Aug 10, 2011, at 2:33 PM, Jakob Stoklund Olesen wrote:
>
> On Aug 10, 2011, at 2:25 PM, Devang Patel wrote:
>
>> void UserValue::extendDef(SlotIndex Idx, unsigned LocNo,
>> LiveInterval *LI, const VNInfo *VNI,
>> SmallVectorImpl<SlotIndex> *Kills,
>> - LiveIntervals &LIS, MachineDominatorTree &MDT) {
>> + LiveIntervals &LIS, MachineDominatorTree &MDT,
>> + LexicalScopes &LS) {
>> SmallVector<SlotIndex, 16> Todo;
>> Todo.push_back(Idx);
>> -
>> + SmallPtrSet<const MachineBasicBlock *, 4> LBlocks;
>> + LS.getMachineBasicBlocks(dl, LBlocks);
>
> Hi Devang,
>
> I think the DebugLoc in a UserValue is bogus and should be removed.
>
> Shouldn't the lexical scope be derived from the MDNode instead?
DebugLoc has inline info which is required to properly determine lexical scopes in case of inlining. DebugLoc is more compressed form, and it provides utilities to convert to/from MDNode.
-
Devang
More information about the llvm-commits
mailing list