[llvm] [X86] Prevent legalization cycles in lane-permute shuffle lowering (PR #224265)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 08:46:24 PDT 2026
================
@@ -0,0 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skylake-avx512 | FileCheck %s
+
+; This shuffle used to bounce between two masks, causing an infinite loop
+; during legalization.
+define <64 x i8> @shuffle_v64i8_lane_permute_cycle(<48 x i8> %a) {
----------------
RKSimon wrote:
(style) Make sure you refer to the issue:
```suggestion
define <64 x i8> @PR224266(<48 x i8> %a) {
```
https://github.com/llvm/llvm-project/pull/224265
More information about the llvm-commits
mailing list