[PATCH] D126177: [BOLT] [AArch64] Handle data markers spanning multiple functions

Denis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 02:30:35 PDT 2022


treapster added a comment.

@rafauler, even though `isMarker` and `getMarkerType` fit well to binary context, i wouldn't say we will do unnecessary work on x86 if we extract them, because we check arch at RewriteInstance.cpp:951 anyway. IsMarker is also used one time at `BinaryFunction::isSymbolValidInScope`, but it's called there anyway, and if we don't want to call it on X86 we can add that check to if. This is largely irrelevant and doesn't make practical difference, but i feel like it's more natural when being or not being a marker is independent property of a symbol. But these are just my thoughts.

Speaking of tests, when i check-bolt on AArch64 EulerOS, most x86 tests fail and also AArch64/asm-func-debug.test. Since they fail even without my patch, i figured it's not a bug but a feature. But buildkite seems to run fine after changing test to YAML, so i guess i didn't break anything.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126177



More information about the llvm-commits mailing list