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

dianqk via All-commits all-commits at lists.llvm.org
Wed Mar 26 06:28:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66f158d91803875de63d8f2a437ce8ecb22c4141
      https://github.com/llvm/llvm-project/commit/66f158d91803875de63d8f2a437ce8ecb22c4141
  Author: dianqk <dianqk at dianqk.net>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineBasicBlock.h
    M llvm/include/llvm/CodeGen/MachineInstr.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.



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