[llvm-bugs] [Bug 37883] [InstCombine][DebugInfo] replaceInstUsesWith() makes dbg.values point to mis-sized values

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 20 16:41:00 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37883

Vedant Kumar <vsk at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #2 from Vedant Kumar <vsk at apple.com> ---
Hold on, in this particular case, I think InstCombine is doing the right thing.
In the final output, !12 points to a 128-bit variable, which is consistent with
the value (<2 x i64> %and).

Could it be that you saw a mismatched size issue while working on
https://reviews.llvm.org/D48331 (see: https://paste.debian.net/1030112/)? In
the paste,  I see:

call void @llvm.dbg.value(metadata <2 x i64> %and, metadata !11, metadata
!DIExpression()), !dbg !14
!10 = !DIBasicType(name: "ty64", size: 64, encoding: DW_ATE_unsigned)
!11 = !DILocalVariable(name: "2", scope: !6, file: !1, line: 2, type: !10)

This one does seem like a bona-fide bug, but it's not with ToT does.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180620/b81ff9de/attachment.html>


More information about the llvm-bugs mailing list