]> granicus.if.org Git - llvm/commitdiff
Use auto for dyn_cast case to save a line. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 4 Feb 2019 12:32:39 +0000 (12:32 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 4 Feb 2019 12:32:39 +0000 (12:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353041 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 50502e2911e55268d826488cf54514eb01c9f6d8..95827fbed5dec27c2fe378be3be77da962d5772e 100644 (file)
@@ -40493,8 +40493,7 @@ static SDValue combineVectorCompareAndMaskUnaryOp(SDNode *N,
   // make the transformation for non-constant splats as well, but it's unclear
   // that would be a benefit as it would not eliminate any operations, just
   // perform one more step in scalar code before moving to the vector unit.
-  if (BuildVectorSDNode *BV =
-          dyn_cast<BuildVectorSDNode>(N->getOperand(0)->getOperand(1))) {
+  if (auto *BV = dyn_cast<BuildVectorSDNode>(N->getOperand(0).getOperand(1))) {
     // Bail out if the vector isn't a constant.
     if (!BV->isConstant())
       return SDValue();