We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a function can be redefined, thus if it doesn't have an "exact" definition, we should not derive no-recurse from the body, though, we do:
Before:
define linkonce_odr i32 @leaf_redefinable() { ret i32 1 }
After -functionattrs:
; Function Attrs: norecurse define linkonce_odr i32 @leaf_redefinable() #6 { ret i32 1 }
The text was updated successfully, but these errors were encountered:
if function definition is not exact LLVM should not derive any attribute based on function body right?
Sorry, something went wrong.
Fixed by commit https://reviews.llvm.org/rL362918
No branches or pull requests
Extended Description
If a function can be redefined, thus if it doesn't have an "exact" definition,
we should not derive no-recurse from the body, though, we do:
Before:
define linkonce_odr i32 @leaf_redefinable() {
ret i32 1
}
After -functionattrs:
; Function Attrs: norecurse
define linkonce_odr i32 @leaf_redefinable() #6 {
ret i32 1
}
The text was updated successfully, but these errors were encountered: