-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix some sources of signed integer overflow in the compiler #7231
Conversation
Also, use compiler intrinsics when possible to handle overflow, as it generates faster code.
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, I will pull this into Google for testing
src\CMakeFiles\Halide.dir\Util.cpp.obj /Fdsrc\CMakeFiles\Halide.dir\ /FS -c D:\build_bot\worker\halide-testbranch-main-llvm16-x86-32-windows-cmake\halide-source\src\Util.cpp |
Oops, it's _MSC_VER, not __MSC_VER |
Still failing ~every Windows test |
Google integrate looks clean, just need to figure out Windows |
Also, use compiler intrinsics when possible to handle overflow, as it generates faster code.
Fixes #7229