[all-commits] [llvm/llvm-project] 6561fa: [LoopUnswitch] Allow i1 truncs in loop unswitch (#...

Matthew Devereau via All-commits all-commits at lists.llvm.org
Mon Apr 29 07:18:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6561fa3d02b746743139212f31f24c4a81e5138c
      https://github.com/llvm/llvm-project/commit/6561fa3d02b746743139212f31f24c4a81e5138c
  Author: Matthew Devereau <matthew.devereau at arm.com>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/test/Transforms/SimpleLoopUnswitch/endless-unswitch.ll
    M llvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch.ll

  Log Message:
  -----------
  [LoopUnswitch] Allow i1 truncs in loop unswitch (#89738)

With the addition of #84628, truncs to i1 are being emitted as
conditions to branch instructions. This caused significant regressions
in cases which were previously improved by loop unswitch. Adding truncs
to i1 restore the previous performance seen.



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