From 3dbce52c16959942229875b3b070c42a6ea7e56e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 4 Aug 2016 17:16:50 +0000 Subject: [PATCH] [X86][SSE] Rename target shuffle unary permute matching function. NFCI. In preparation for adding a binary permute matching function. llvm-svn: 277737 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 91c56c0f61cc..7fa7c026ccd4 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -24841,10 +24841,10 @@ static bool matchUnaryVectorShuffle(MVT SrcVT, ArrayRef Mask, // Attempt to match a combined shuffle mask against supported unary immediate // permute instructions. // TODO: Investigate sharing more of this with shuffle lowering. -static bool matchPermuteVectorShuffle(MVT SrcVT, ArrayRef Mask, - const X86Subtarget &Subtarget, - unsigned &Shuffle, MVT &ShuffleVT, - unsigned &PermuteImm) { +static bool matchUnaryPermuteVectorShuffle(MVT SrcVT, ArrayRef Mask, + const X86Subtarget &Subtarget, + unsigned &Shuffle, MVT &ShuffleVT, + unsigned &PermuteImm) { // Ensure we don't contain any zero elements. for (int M : Mask) { if (M == SM_SentinelZero) @@ -25116,8 +25116,8 @@ static bool combineX86ShuffleChain(SDValue Input, SDValue Root, return true; } - if (matchPermuteVectorShuffle(VT, Mask, Subtarget, Shuffle, ShuffleVT, - PermuteImm)) { + if (matchUnaryPermuteVectorShuffle(VT, Mask, Subtarget, Shuffle, ShuffleVT, + PermuteImm)) { if (Depth == 1 && Root.getOpcode() == Shuffle) return false; // Nothing to do! Res = DAG.getBitcast(ShuffleVT, Input);