[all-commits] [llvm/llvm-project] 534b92: [LoopInfo] Allow cloning of callbr

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jul 19 00:57:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 534b9246a20498e2cd4d2b9a512e7c5e75c83bc7
      https://github.com/llvm/llvm-project/commit/534b9246a20498e2cd4d2b9a512e7c5e75c83bc7
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M llvm/lib/Analysis/LoopInfo.cpp
    M llvm/test/Transforms/LoopUnroll/callbr.ll
    M llvm/test/Transforms/SimpleLoopUnswitch/callbr.ll

  Log Message:
  -----------
  [LoopInfo] Allow cloning of callbr

After D129288, callbr is safe to clone without special handling.
This permits optimizations like loop unroll and loop unswitch on
loops containing callbrs.

Fixes https://github.com/llvm/llvm-project/issues/41834.

Differential Revision: https://reviews.llvm.org/D129993




More information about the All-commits mailing list