[llvm-dev] Jump Threading duplicates dbg.declare intrinsics for fragments, bug?

Mikael Holmén via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 20 23:39:02 PDT 2017



On 09/20/2017 07:13 PM, Reid Kleckner wrote:
> On Wed, Sep 20, 2017 at 1:43 AM, Mikael Holmén 
> <mikael.holmen at ericsson.com <mailto:mikael.holmen at ericsson.com>> wrote:
> 
>     I also think it's weird that the
>     replaceDbgDeclareForAlloca/replaceDbgDeclare/FindAllocaDbgDeclare
>     methods return as soon as they've handled one found dbg.declare, so
>     if there are several, one is moved next to the alloca, but the other
>     ones are left somewhere. So maybe a fault there too? These methods
>     are used from a bunch of different passes...
> 
> 
> I agree, this seems like a bug. I plan to make this return a list in 
> https://reviews.llvm.org/D37768.

Great, got it!

Thanks for that and thank you both the the replies!

Regards,
Mikael




More information about the llvm-dev mailing list