[llvm] [LV] Fix for miscompile with disjoint or (PR #81922)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 03:15:47 PST 2024


================
@@ -0,0 +1,102 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; RUN: opt -S -passes=loop-vectorize < %s | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+ at global = external global ptr addrspace(1), align 8
+
+; PR 81872 explains the issue.
+
+; If we vectorize, we have a miscompile where array IV and thereby value stored in (arr[99],
----------------
fhahn wrote:

would be good to frame this in terms of the names that are used in the test function

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


More information about the llvm-commits mailing list