[llvm] Revert "LSV: document hang reported in #37865 (#102479)" (PR #102603)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 05:01:07 PDT 2024
https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/102603
This reverts commit 199d6f2, as there is a buildbot failure.
>From 31fdf479c5a4cae5026dafeb43aed91503374bde Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
Date: Fri, 9 Aug 2024 12:59:09 +0100
Subject: [PATCH] Revert "LSV: document hang reported in #37865 (#102479)"
This reverts commit 199d6f2, as there is a buildbot failure.
---
.../Transforms/Vectorize/LoadStoreVectorizer.cpp | 2 --
.../LoadStoreVectorizer/AArch64/pr37865.ll | 15 ---------------
2 files changed, 17 deletions(-)
delete mode 100644 llvm/test/Transforms/LoadStoreVectorizer/AArch64/pr37865.ll
diff --git a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
index c35ea431296b70..c91911ecad7456 100644
--- a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
@@ -216,8 +216,6 @@ void reorder(Instruction *I) {
if (IM->getParent() != I->getParent())
continue;
- assert(IM != I && "Unexpected cycle while re-ordering instructions");
-
if (!IM->comesBefore(I)) {
InstructionsToMove.insert(IM);
Worklist.push_back(IM);
diff --git a/llvm/test/Transforms/LoadStoreVectorizer/AArch64/pr37865.ll b/llvm/test/Transforms/LoadStoreVectorizer/AArch64/pr37865.ll
deleted file mode 100644
index 833e70814c2917..00000000000000
--- a/llvm/test/Transforms/LoadStoreVectorizer/AArch64/pr37865.ll
+++ /dev/null
@@ -1,15 +0,0 @@
-; REQUIRES: asserts
-; RUN: not --crash opt -mtriple=aarch64 -passes=load-store-vectorizer \
-; RUN: -disable-output %s 2>&1 | FileCheck %s
-
-define i32 @load_cycle(ptr %x) {
-; CHECK: Unexpected cycle while re-ordering instructions
-entry:
- %gep.x.1 = getelementptr inbounds [2 x i32], ptr %x, i32 0, i32 1
- %load.x.1 = load i32, ptr %gep.x.1
- %rem = urem i32 %load.x.1, 1
- %gep.x.2 = getelementptr inbounds [2 x i32], ptr %x, i32 %rem, i32 0
- %load.x.2 = load i32, ptr %gep.x.2
- %ret = add i32 %load.x.2, %load.x.1
- ret i32 %ret
-}
More information about the llvm-commits
mailing list