We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df91a0f commit 32c0561Copy full SHA for 32c0561
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -857,7 +857,7 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
857
case Instruction::FPExt:
858
case Instruction::SExt:
859
case Instruction::ZExt:
860
- if (TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
+ if (I && TargetTTI->getExtCost(I, Operands.back()) == TTI::TCC_Free)
861
return TTI::TCC_Free;
862
break;
863
}
0 commit comments