[llvm] [LoopVectorize] Fix crash with GC statepoint in epilogue vectorization (PR #179459)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 04:45:16 PST 2026
================
@@ -0,0 +1,40 @@
+; RUN: opt -passes=loop-vectorize -enable-epilogue-vectorization -force-vector-width=2 -epilogue-vectorization-force-VF=2 -S < %s | FileCheck %s
+;
+; Test case for issue #179407: LoopVectorize should not crash when
+; vectorizing loops in functions with GC statepoint.
+;
+; The issue was that fixScalarResumeValuesFromBypass assumed
+; IVPhi->getIncomingValueForBlock(PH) always returns a PHINode, but in
+; functions with GC statepoint, it could return a constant or other value.
+;
+; This test verifies that epilogue vectorization works correctly with
+; GC statepoint by checking that the loop is vectorized and the
+; bypass blocks are properly created.
+
----------------
fhahn wrote:
I don't think this is related to statepoints?
https://github.com/llvm/llvm-project/pull/179459
More information about the llvm-commits
mailing list