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 @@ -986,10 +986,9 @@ InstructionCost TargetTransformInfo::getShuffleCost(
986
986
987
987
TargetTransformInfo::PartialReductionExtendKind
988
988
TargetTransformInfo::getPartialReductionExtendKind (Instruction *I) {
989
- auto *Cast = dyn_cast<CastInst>(I);
990
- if (!Cast)
991
- return PR_None;
992
- return getPartialReductionExtendKind (Cast->getOpcode ());
989
+ if (auto *Cast = dyn_cast<CastInst>(I))
990
+ return getPartialReductionExtendKind (Cast->getOpcode ());
991
+ return PR_None;
993
992
}
994
993
995
994
TargetTransformInfo::PartialReductionExtendKind
@@ -1001,7 +1000,7 @@ TargetTransformInfo::getPartialReductionExtendKind(
1001
1000
case Instruction::CastOps::SExt:
1002
1001
return PR_SignExtend;
1003
1002
default :
1004
- return PR_None ;
1003
+ llvm_unreachable ( " Unexpected cast opcode " ) ;
1005
1004
}
1006
1005
}
1007
1006
You can’t perform that action at this time.
0 commit comments