Skip to content

Commit a16ee72

Browse files
arichardsongithub-actions[bot]
authored andcommitted
Automerge: [TTI] Assert that TargetIRAnalyis is not requested for intrinsics
This catches the bug fixed in llvm/llvm-project#127760 and also finds another call in LowerTypeTests where we request the TTI for instrinsics instead of skipping them. Reviewed By: nikic Pull Request: llvm/llvm-project#129600
2 parents 634647a + 17f0aaa commit a16ee72

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)