[llvm] LoopLoadElim: re-org tests after invalid #96656 (PR #97598)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 02:54:33 PDT 2024


================
@@ -1,16 +1,19 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
 ; RUN: opt -passes=loop-versioning -S %s | FileCheck %s
 
-define void @lver.check.unnecessary(ptr %arg, ptr %arg1, i1 %arg2) {
-; CHECK-LABEL: define void @lver.check.unnecessary(
-; CHECK-SAME: ptr [[ARG:%.*]], ptr [[ARG1:%.*]], i1 [[ARG2:%.*]]) {
+; Callers should not call LoopVersioning on single-iteration loops, but
----------------
fhahn wrote:

Would be good to explain why, e.g.
```suggestion
; Callers should not call LoopVersioning on single-iteration loops as it is very likely not profitable
```

https://github.com/llvm/llvm-project/pull/97598


More information about the llvm-commits mailing list