[llvm] [MemProf] Add ability to export or highlight only a portion of graph (PR #128255)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 07:34:56 PDT 2025


teresajohnson wrote:

> Hi, this commit currently leads to a test fail with 21-rc1 and -rc2 on Alpine Linux edge on 32-bit architectures:
> 
...
> Do you understand whats going on here?

Yeah, I can see what is happening. Here's what we expect:

Node[[BAR:0x[a-z0-9]+]] [shape=record,tooltip="N[[BAR]] ContextIds: 1 2",

and here is what is outputted:

Node0xf7672c10 [shape=record,tooltip="N0xfffffffff7672c10 ContextIds: 1 2",

Note the sign extended pointer value in the tooltip, because this is 32-bits. I'm surprised this is the only test failing as some other tests also match on the dot graph. For example, is test/Transforms/MemProfContextDisambiguation/basic.ll also failing? It has the same exact type of matching on the outputted dot graphs.

This isn't important to the behavior so I'd rather just work around these diffs for 32-bit architectures. Let me know whether the other tests like the one I mentioned above are also failing.

https://github.com/llvm/llvm-project/pull/128255


More information about the llvm-commits mailing list