-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[TTI] Assert that TargetIRAnalyis is not requested for intrinsics #129600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TTI] Assert that TargetIRAnalyis is not requested for intrinsics #129600
Conversation
Created using spr 1.3.6-beta.1 [skip ci]
Created using spr 1.3.6-beta.1
@llvm/pr-subscribers-llvm-analysis Author: Alexander Richardson (arichardson) ChangesThis catches the bug fixed in #127760 Full diff: https://github.com/llvm/llvm-project/pull/129600.diff 1 Files Affected:
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index 1c54395909f10..067b3ec10fc7a 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -1476,6 +1476,7 @@ TargetIRAnalysis::TargetIRAnalysis(
TargetIRAnalysis::Result TargetIRAnalysis::run(const Function &F,
FunctionAnalysisManager &) {
+ assert(!F.isIntrinsic() && "Should not request TTI for intrinsics");
return TTICallback(F);
}
|
Depends on #129599 |
Created using spr 1.3.6-beta.1 [skip ci]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Created using spr 1.3.6-beta.1
…support When looping over all functions in a module to determine whether any of them is built with support for B.W, we can skip declarations since those do not have an associated target-feature attribute. This was found by the assertion from llvm/llvm-project#129600 Reviewed By: statham-arm Pull Request: llvm/llvm-project#129599
…rinsics 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
When looping over all functions in a module to determine whether any of them is built with support for B.W, we can skip declarations since those do not have an associated target-feature attribute. This was found by the assertion from llvm#129600 Reviewed By: statham-arm Pull Request: llvm#129599
This catches the bug fixed in llvm#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#129600
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.