[all-commits] [llvm/llvm-project] 293466: [SimplifyCFG] Precommit tests for PR161807 (NFC)

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Mon Oct 27 00:53:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29346628e90be9e196c7ff2e20c103432c526f7c
      https://github.com/llvm/llvm-project/commit/29346628e90be9e196c7ff2e20c103432c526f7c
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2025-10-27 (Mon, 27 Oct 2025)

  Changed paths:
    M llvm/test/Transforms/SimplifyCFG/X86/switch-of-powers-of-two.ll

  Log Message:
  -----------
  [SimplifyCFG] Precommit tests for PR161807 (NFC)


  Commit: 00f5a1e30b1b2a28569c5aa24219518135d107d0
      https://github.com/llvm/llvm-project/commit/00f5a1e30b1b2a28569c5aa24219518135d107d0
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2025-10-27 (Mon, 27 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/RISCV/switch-of-powers-of-two.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-of-powers-of-two.ll

  Log Message:
  -----------
  [SimplifyCFG] Extend `simplifySwitchOfPowersOfTwo` to reachable defaults

Favour a `cttz`-indexed table lookup over an indirect jump table when
the default switch case is reachable, by branching non-power-of-two
inputs to the default case.

Proofs: https://alive2.llvm.org/ce/z/HeRAtf.


Compare: https://github.com/llvm/llvm-project/compare/f8b004dd7bdb...00f5a1e30b1b

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