[llvm] [LV] Skip low-trip count logic there is no scalar tail (PR #225633)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 12:28:14 PDT 2026
================
@@ -3,20 +3,22 @@
; RUN: opt -passes=loop-vectorize -mtriple=riscv64 -mattr=+v -low-trip-count-loop-body-size-limit=0 -tail-folding-policy=must-fold-tail -S %s | FileCheck %s --check-prefix=NO-EPILOGUE
; RUN: opt -passes=loop-vectorize -mtriple=riscv64 -mattr=+v -vectorizer-min-trip-count=0 -tail-folding-policy=dont-fold-tail -force-vector-width=2 -S %s | FileCheck %s --check-prefix=EPILOGUE
-; FIXME: Currently this gets miscompiled, as the forced scalar epilogue is missing.
define i32 @countable_early_exit(ptr noalias %b) {
; NO-EPILOGUE-LABEL: define i32 @countable_early_exit(
; NO-EPILOGUE-SAME: ptr noalias [[B:%.*]]) #[[ATTR0:[0-9]+]] {
-; NO-EPILOGUE-NEXT: [[ENTRY:.*:]]
-; NO-EPILOGUE-NEXT: br label %[[VECTOR_PH:.*]]
-; NO-EPILOGUE: [[VECTOR_PH]]:
+; NO-EPILOGUE-NEXT: [[VECTOR_PH:.*]]:
----------------
fhahn wrote:
done thanks
https://github.com/llvm/llvm-project/pull/225633
More information about the llvm-commits
mailing list