aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authoryonghong-song <yhs@fb.com>2024-09-19 10:21:58 +0200
committerGitHub <noreply@github.com>2024-09-19 10:21:58 +0200
commit959448fbd6bc6f74fb3f9655b1387d0e8a272ab8 (patch)
tree6eec0e1996c71affd9e9851e71a7abc5554c40cc /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent30cdf1e959d2e4dee1c871ff37470dcdb7e8d099 (diff)
downloadllvm-959448fbd6bc6f74fb3f9655b1387d0e8a272ab8.zip
llvm-959448fbd6bc6f74fb3f9655b1387d0e8a272ab8.tar.gz
llvm-959448fbd6bc6f74fb3f9655b1387d0e8a272ab8.tar.bz2
[Transforms][IPO] Add func suffix in ArgumentPromotion and DeadArgume… (#105742)
…ntElimination ArgumentPromotion and DeadArgumentElimination passes could change function signatures but the function name remains the same as before the transformation. This makes it hard for tracing with bpf programs where user tends to use function signature in the source. See discussion [1] for details. This patch added suffix to functions whose signatures are changed. The suffix lets users know that function signature has changed and they need to impact the IR or binary to find modified signature before tracing those functions. The suffix for ArgumentPromotion is ".argprom" and the suffixes for DeadArgumentElimination are ".argelim" and ".retelim". The suffix also gives user hints about what kind of transformation has been done. With this patch, I built a recent linux kernel with full LTO enabled. I got 4 functions with only argpromotion like ``` set_track_update.argelim.argprom pmd_trans_huge_lock.argprom ... ``` I got 1058 functions with only deadargelim like ``` process_bit0.argelim pci_io_ecs_init.argelim ... ``` I got 3 functions with both argpromotion and deadargelim ``` set_track_update.argelim.argprom zero_pud_populate.argelim.argprom zero_pmd_populate.argelim.argprom ``` [1] https://github.com/llvm/llvm-project/issues/104678
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions