[llvm] [LoopVectorize] Don't replace widen with replicate for ExtractValueInst (PR #193404)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 14:14:50 PDT 2026


================
@@ -0,0 +1,55 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --version 6
+; RUN: opt < %s -passes=loop-vectorize -force-vector-width=2 -force-vector-interleave=1 -S 2>%t | FileCheck %s
+
+; Regression test from https://github.com/llvm/llvm-project/issues/193275
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+
+declare { i64, i1 } @llvm.sadd.with.overflow.i64(i64, i64)
+
+define void @func(ptr %p) #1 {
----------------
fhahn wrote:

```suggestion
define void @func(ptr %p){
```

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


More information about the llvm-commits mailing list