File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1476,6 +1476,7 @@ TargetIRAnalysis::TargetIRAnalysis(
14761476
14771477TargetIRAnalysis::Result TargetIRAnalysis::run (const Function &F,
14781478 FunctionAnalysisManager &) {
1479+ assert (!F.isIntrinsic () && " Should not request TTI for intrinsics" );
14791480 return TTICallback (F);
14801481}
14811482
Original file line number Diff line number Diff line change @@ -1847,6 +1847,10 @@ LowerTypeTestsModule::LowerTypeTestsModule(
18471847 auto &FAM =
18481848 AM.getResult <FunctionAnalysisManagerModuleProxy>(M).getManager ();
18491849 for (Function &F : M) {
1850+ // Skip intrinsics since we should not query the TTI for them.
1851+ // TODO: Can we skip all declarations and only look at definitions?
1852+ if (F.isIntrinsic ())
1853+ continue ;
18501854 auto &TTI = FAM.getResult <TargetIRAnalysis>(F);
18511855 if (TTI.hasArmWideBranch (false ))
18521856 CanUseArmJumpTable = true ;
You can’t perform that action at this time.
0 commit comments