[PATCH] D76129: Fix possible assertion when using PBQP with debug info

Danila Malyutin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 16 10:52:32 PDT 2020


danilaml marked an inline comment as done.
danilaml added inline comments.


================
Comment at: llvm/test/CodeGen/Generic/csw-debug-assert.ll:109
+!45 = !DILocation(line: 8, column: 23, scope: !38)
+!46 = !DILocation(line: 8, column: 21, scope: !38)
+!47 = !DILocation(line: 8, column: 11, scope: !38)
----------------
aprantl wrote:
> danilaml wrote:
> > aprantl wrote:
> > > You can probably significantly shorten the test by manually assigning all instructions the same !dbg location.
> > I've simplified the test. Do you think manual dbg hacking is still necessary?
> Getting the tests as minimal as possible helps in the long term with maintenance. All tests need to updated occasionally for various IR changes and then it really helps to know what is relevant to the test and what isn't. So, I would do it, since it's not a lot of work and helps focus on what's important.
My concern here that by manually editing .ll metadata I might accidentally break some underlying assumption which might lead to problems later down the line. Anyway, I'll try to clean DILocations up.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76129/new/

https://reviews.llvm.org/D76129





More information about the llvm-commits mailing list