Skip to content
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

Ignore :boundscheck and :code_coverage_effect IR nodes #176

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

staticfloat
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (cab3a49) 52.29% compared to head (801ff96) 52.29%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #176   +/-   ##
=======================================
  Coverage   52.29%   52.29%           
=======================================
  Files          27       27           
  Lines        2719     2719           
=======================================
  Hits         1422     1422           
  Misses       1297     1297           
Impacted Files Coverage Δ
src/codegen/forward.jl 93.82% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@staticfloat staticfloat merged commit 9e04378 into main Jun 29, 2023
@oscardssmith oscardssmith deleted the sf/ignore_boundscheck_exprs branch June 29, 2023 19:18
@@ -53,7 +53,8 @@ function fwd_transform!(ci, mi, nargs, N)
return ZeroBundle{N}(mi.sparam_vals[stmt.args[1]::Int])
elseif isexpr(stmt, :foreigncall)
return Expr(:call, error, "Attempted to AD a foreigncall. Missing rule?")
elseif isexpr(stmt, :meta) || isexpr(stmt, :inbounds) || isexpr(stmt, :loopinfo)
elseif isexpr(stmt, :meta) || isexpr(stmt, :inbounds) || isexpr(stmt, :loopinfo) ||
isexpr(stmt, :boundscheck) || isexpr(stmt, :code_coverage_effect)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expr(:boundscheck) returns a bool, so this is incorrect.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed (and test added) in #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants