[PATCH] D124549: [SimpleLoopUnswitch] Freeze trivial conditions if needed.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 12:30:50 PDT 2022
nikic added a reviewer: nikic.
nikic added inline comments.
================
Comment at: llvm/test/Transforms/SimpleLoopUnswitch/LIV-loop-condtion.ll:11
; CHECK-NEXT: entry:
-; CHECK-NEXT: br i1 %cond1, label %entry.split, label %loop_exit.split
+; CHECK-NEXT: [[FROZEN:%.+]] = freeze i1 %cond1
+; CHECK-NEXT: br i1 [[FROZEN]], label %entry.split, label %loop_exit.split
----------------
This freeze doesn't look necessary -- shouldn't there be a "not guaranteed to execute" check involved?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124549/new/
https://reviews.llvm.org/D124549
More information about the llvm-commits
mailing list