mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Use auto for dyn_cast case to save a line. NFCI.
llvm-svn: 353041
This commit is contained in:
parent
43a3f10458
commit
793452a500
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user