[llvm] [LoopVectorize] Don't speculate an early-exit trip count that may cause UB (PR #219893)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 03:31:36 PDT 2026


================
@@ -2,6 +2,7 @@
 ; RUN: opt -p loop-vectorize -force-vector-width=4 -force-vector-interleave=1 -S %s | FileCheck %s
 
 declare i32 @llvm.cttz.i32(i32, i1 immarg)
----------------
lukel97 wrote:

Intrinsics don't need to be declared

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


More information about the llvm-commits mailing list