[all-commits] [llvm/llvm-project] cf7bb1: [TailDuplicator] Determine if computed gotos using...

dianqk via All-commits all-commits at lists.llvm.org
Fri Apr 11 09:36:50 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: cf7bb13f0c7ff2d757b43d207cb433f170d38ed1
      https://github.com/llvm/llvm-project/commit/cf7bb13f0c7ff2d757b43d207cb433f170d38ed1
  Author: dianqk <dianqk at dianqk.net>
  Date:   2025-04-11 (Fri, 11 Apr 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineBasicBlock.h
    M llvm/lib/CodeGen/TailDuplicator.cpp
    M llvm/test/CodeGen/X86/tail-dup-computed-goto.mir

  Log Message:
  -----------
  [TailDuplicator] Determine if computed gotos using `blockaddress` (#132536)

Using `blockaddress` should be more reliable than determining if an
operand comes from a jump table index.

Alternative: Add the `MachineInstr::MIFlag::ComputedGoto` flag when
lowering `indirectbr`. But I don't think this approach is suitable to
backport.

(cherry picked from commit 66f158d91803875de63d8f2a437ce8ecb22c4141)



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