[all-commits] [llvm/llvm-project] 3600b3: [SimpleLoopUnswitch] Canonicalize conditions for i...

Max Kazantsev via All-commits all-commits at lists.llvm.org
Wed Feb 15 03:24:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3600b384462b5f6be70636821a79e45551214fa1
      https://github.com/llvm/llvm-project/commit/3600b384462b5f6be70636821a79e45551214fa1
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
    M llvm/test/Transforms/SimpleLoopUnswitch/inject-invariant-conditions.ll

  Log Message:
  -----------
  [SimpleLoopUnswitch] Canonicalize conditions for injection of invariant condition

When loop condition isn't immediately in the form supported by invariant injection
unswitching, try to canonicalize it to this form.

Differential Revision: https://reviews.llvm.org/D143175
Reviewed By: skatkov




More information about the All-commits mailing list