Skip to content

Commit

Permalink
add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Jun 21, 2023
1 parent f01adb8 commit df27e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vectorizationbase_compat/contract_pass.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function mulexpr(
)::Tuple{ProdArg,ProdArg}
a = (mulexargs[1])::ProdArg
Nexpr = length(mulexargs)
Nexpr == 2 && (a, mulexargs[2]::ProdArg)
Nexpr != 3 && (a, mul_fast_expr(mulexargs))
Nexpr == 2 && return (a, mulexargs[2]::ProdArg)
Nexpr != 3 && return (a, mul_fast_expr(mulexargs))
# We'll calc the product between the guesstimated cheaper two args first, for better out of order execution
b = (mulexargs[2])::ProdArg
c = (mulexargs[3])::ProdArg
Expand Down

2 comments on commit df27e4a

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/86018

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.161 -m "<description of version>" df27e4a7cd7689dd1ac6035910773fcefc3ea711
git push origin v0.12.161

Please sign in to comment.