[PATCH] D136233: [SimpleLoopUnswitch] Inject loop-invariant conditions and unswitch them when it's profitable
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 01:55:09 PST 2023
skatkov added inline comments.
================
Comment at: llvm/test/Transforms/SimpleLoopUnswitch/inject-invariant-conditions.ll:2
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -S -passes="loop(simple-loop-unswitch<nontrivial>),simplifycfg" | FileCheck %s
+; RUN: opt < %s -S -passes="loop-mssa(simple-loop-unswitch<nontrivial>),simplifycfg" -verify-memoryssa | FileCheck %s
----------------
can you please explicitly add -simple-loop-unswitch-inject-invariant-conditions=true here.
May be even makes sense to land it with off by default and switch it on as a separate commit.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136233/new/
https://reviews.llvm.org/D136233
More information about the llvm-commits
mailing list