[all-commits] [llvm/llvm-project] c22d6a: [BOLT][RISCV] Mark newly created tail calls (#221672)

wangjue via All-commits all-commits at lists.llvm.org
Mon Sep 7 18:56:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c22d6a86d2e47524cd259f81206db7adf593e5a4
      https://github.com/llvm/llvm-project/commit/c22d6a86d2e47524cd259f81206db7adf593e5a4
  Author: wangjue <wangjue.wangjue at alibaba-inc.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M bolt/lib/Passes/FixRISCVCallsPass.cpp
    M bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
    A bolt/test/RISCV/conditional-tail-call-relocs.s

  Log Message:
  -----------
  [BOLT][RISCV] Mark newly created tail calls (#221672)

Tail calls created during CFG normalization lack the tail-call
annotation, so FixRISCVCallsPass rewrites them as regular calls that
clobber ra.

Set the annotation in createTailCall(). Clear builder annotations before
moving the originals when rebuilding calls to avoid duplicate annotation
markers.

Add a relocation-mode regression test for a conditional tail call.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list