Skip to content

Commit 17f0aaa

Browse files
authored
[TTI] Assert that TargetIRAnalyis is not requested for intrinsics
This catches the bug fixed in #127760 and also finds another call in LowerTypeTests where we request the TTI for instrinsics instead of skipping them. Reviewed By: nikic Pull Request: #129600
1 parent 3d864c4 commit 17f0aaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,7 @@ TargetIRAnalysis::TargetIRAnalysis(
14761476

14771477
TargetIRAnalysis::Result TargetIRAnalysis::run(const Function &F,
14781478
FunctionAnalysisManager &) {
1479+
assert(!F.isIntrinsic() && "Should not request TTI for intrinsics");
14791480
return TTICallback(F);
14801481
}
14811482

0 commit comments

Comments
 (0)