[llvm] [VPlan] Don't fold live ins with both scalar and vector operands (PR #154067)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 18 03:47:22 PDT 2025
================
@@ -0,0 +1,75 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --version 5
+; RUN: opt -p loop-vectorize -S %s | FileCheck %s
+
+; Make sure we don't try to fold a Instruction::ExtractElement ir<0>, ir<0>,
+; since we can't materialize the live-in for the vector operand.
+
+target triple = "x86_64"
+
+define void @test(ptr %p, i1 %c, i64 %x) {
----------------
artagnon wrote:
```suggestion
define void @pr154045(ptr %p, i1 %c, i64 %x) {
```
https://github.com/llvm/llvm-project/pull/154067
More information about the llvm-commits
mailing list