[llvm] r354343 - Cast from SDValue directly instead of superfluous getNode(). NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 08:20:09 PST 2019
Author: rksimon
Date: Tue Feb 19 08:20:09 2019
New Revision: 354343
URL: http://llvm.org/viewvc/llvm-project?rev=354343&view=rev
Log:
Cast from SDValue directly instead of superfluous getNode(). 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=354343&r1=354342&r2=354343&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Feb 19 08:20:09 2019
@@ -38615,7 +38615,7 @@ static bool isHorizontalBinOp(SDValue &L
A = LHS.getOperand(0);
if (!LHS.getOperand(1).isUndef())
B = LHS.getOperand(1);
- ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(LHS.getNode())->getMask();
+ ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(LHS)->getMask();
llvm::copy(Mask, LMask.begin());
} else {
A = LHS;
@@ -38632,7 +38632,7 @@ static bool isHorizontalBinOp(SDValue &L
C = RHS.getOperand(0);
if (!RHS.getOperand(1).isUndef())
D = RHS.getOperand(1);
- ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(RHS.getNode())->getMask();
+ ArrayRef<int> Mask = cast<ShuffleVectorSDNode>(RHS)->getMask();
llvm::copy(Mask, RMask.begin());
} else {
C = RHS;
More information about the llvm-commits
mailing list