[llvm] [llvm][llvm-profgen] Fix printing bogus trace info on 32-bit (PR #226965)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 04:39:14 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-pgo

Author: David Spickett (DavidSpickett)

<details>
<summary>Changes</summary>

And as a result, fix llvm/test/tools/llvm-profgen/AArch64/cs-bogus-trace.test when run on Arm 32-bit:
https://lab.llvm.org/buildbot/#/builders/122/builds/59

Fixes #<!-- -->225569 / 28fec94991905d8dd8a08658e9590e13b7fe1af5.

`x` is for an unsigned integer but the argument given for it is a uint64_t. This worked on 64-bit (maybe it's passed in a register), but not on 32-bit where we got strange values printed.

Use format_hex instead, so we don't have to choose a format code.

---
Full diff: https://github.com/llvm/llvm-project/pull/226965.diff


1 Files Affected:

- (modified) llvm/tools/llvm-profgen/PerfReader.cpp (+2-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list