Displaying 3 results from an estimated 3 matches for "extracted_region".
2017 Jun 19
2
CloneFunctionInto produces invalid debug info
...the instructions in the cloned function have debug locations belonging to a different function, and the function itself is missing a DISubprogram metadata attachment.
>
>> (lldb) p OldFunc->dump()
>>
>> ; Function Attrs: nounwind optsize
>> define internal void @f_1.extracted_region(i32, i32*, %struct.t_c*, %struct.t_d*) #0 {
>> if.end12.extracted_entry:
>> %and14 = and i32 %0, 2, !dbg !89
>> %tobool15 = icmp eq i32 %and14, 0, !dbg !89
>> br i1 %tobool15, label %exit, label %if.then16, !dbg !185
>>
>> if.then16:...
2017 Jun 20
2
CloneFunctionInto produces invalid debug info
...the cloned function have debug locations belonging to a different function, and the function itself is missing a DISubprogram metadata attachment.
>>
>>> (lldb) p OldFunc->dump()
>>>
>>> ; Function Attrs: nounwind optsize
>>> define internal void @f_1.extracted_region(i32, i32*, %struct.t_c*,
>>> %struct.t_d*) #0 {
>>> if.end12.extracted_entry:
>>> %and14 = and i32 %0, 2, !dbg !89
>>> %tobool15 = icmp eq i32 %and14, 0, !dbg !89 br i1 %tobool15, label
>>> %exit, label %if.then16, !dbg !185
>>>
>>>...
2017 Jun 16
2
CloneFunctionInto produces invalid debug info
The if you are cloning into the same LLVM module the CU should not cloned. If don't mind sharing your code, I can try to help diagnose why the CU gets cloned... just send me a patch that applies to trunk and instructions.
-- adrian
> On Jun 16, 2017, at 1:54 PM, Sergei Larin <slarin at codeaurora.org> wrote:
>
> Sorry… It takes a pass that was not accepted for upstreaming….