Skip to content

Commit b7ef5db

Browse files
[LLVM][ComplexDeinterleaving] Update splat identification to include vector ConstantInt/FP. (#144516)
1 parent d3441f7 commit b7ef5db

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,9 @@ ComplexDeinterleavingGraph::identifySplat(Value *R, Value *I) {
20052005
if (isa<ConstantDataVector>(V))
20062006
return true;
20072007

2008+
if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
2009+
return isa<VectorType>(V->getType());
2010+
20082011
VectorType *VTy;
20092012
ArrayRef<int> Mask;
20102013
// Splats are represented differently depending on whether the repeated

llvm/test/CodeGen/AArch64/complex-deinterleaving-splat-scalable.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc < %s --mattr=+sve -o - | FileCheck %s
3+
; RUN: llc -use-constant-int-for-scalable-splat -use-constant-fp-for-scalable-splat < %s --mattr=+sve -o - | FileCheck %s
34

45
target triple = "aarch64"
56

0 commit comments

Comments
 (0)