[all-commits] [llvm/llvm-project] 338fd8: [SimplifyCFG] Transform switch to select when comm...

Gábor Spaits via All-commits all-commits at lists.llvm.org
Wed Jul 2 09:16:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 338fd8b12ce67eff73ed0a5c2174bee077fcbcbe
      https://github.com/llvm/llvm-project/commit/338fd8b12ce67eff73ed0a5c2174bee077fcbcbe
  Author: Gábor Spaits <gaborspaits1 at gmail.com>
  Date:   2025-07-02 (Wed, 02 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/switch-to-select-two-case.ll

  Log Message:
  -----------
  [SimplifyCFG] Transform switch to select when common bits uniquely identify one case (#145233)

Fix #141753 .

This patch introduces a new check, that tries to decide if the
conjunction of all the values uniquely identify the accepted values by
the switch.



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