File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -995,10 +995,9 @@ InstructionCost TargetTransformInfo::getShuffleCost(
995
995
996
996
TargetTransformInfo::PartialReductionExtendKind
997
997
TargetTransformInfo::getPartialReductionExtendKind (Instruction *I) {
998
- auto *Cast = dyn_cast<CastInst>(I);
999
- if (!Cast)
1000
- return PR_None;
1001
- return getPartialReductionExtendKind (Cast->getOpcode ());
998
+ if (auto *Cast = dyn_cast<CastInst>(I))
999
+ return getPartialReductionExtendKind (Cast->getOpcode ());
1000
+ return PR_None;
1002
1001
}
1003
1002
1004
1003
TargetTransformInfo::PartialReductionExtendKind
@@ -1010,7 +1009,7 @@ TargetTransformInfo::getPartialReductionExtendKind(
1010
1009
case Instruction::CastOps::SExt:
1011
1010
return PR_SignExtend;
1012
1011
default :
1013
- return PR_None ;
1012
+ llvm_unreachable ( " Unexpected cast opcode " ) ;
1014
1013
}
1015
1014
}
1016
1015
You can’t perform that action at this time.
0 commit comments