[llvm] r373855 - [X86][SSE] resolveTargetShuffleInputs - call getTargetShuffleInputs instead of using setTargetShuffleZeroElements directly. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 6 08:42:26 PDT 2019
Author: rksimon
Date: Sun Oct 6 08:42:25 2019
New Revision: 373855
URL: http://llvm.org/viewvc/llvm-project?rev=373855&view=rev
Log:
[X86][SSE] resolveTargetShuffleInputs - call getTargetShuffleInputs instead of using setTargetShuffleZeroElements directly. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=373855&r1=373854&r2=373855&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Oct 6 08:42:25 2019
@@ -7260,7 +7260,7 @@ static bool getTargetShuffleInputs(SDVal
return true;
}
-/// Calls setTargetShuffleZeroElements to resolve a target shuffle mask's inputs
+/// Calls getTargetShuffleInputs to resolve a target shuffle mask's inputs
/// and set the SM_SentinelUndef and SM_SentinelZero values. Then check the
/// remaining input indices in case we now have a unary shuffle and adjust the
/// inputs accordingly.
@@ -7270,10 +7270,9 @@ static bool resolveTargetShuffleInputs(S
SmallVectorImpl<int> &Mask,
SelectionDAG &DAG, unsigned Depth,
bool ResolveZero) {
- if (!setTargetShuffleZeroElements(Op, Mask, Inputs, ResolveZero))
- if (!getFauxShuffleMask(Op, DemandedElts, Mask, Inputs, DAG, Depth,
- ResolveZero))
- return false;
+ if (!getTargetShuffleInputs(Op, DemandedElts, Inputs, Mask, DAG, Depth,
+ ResolveZero))
+ return false;
resolveTargetShuffleInputsAndMask(Inputs, Mask);
return true;
More information about the llvm-commits
mailing list