Fix some sources of signed integer overflow in the compiler#7231
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.
steven-johnson
left a comment
There was a problem hiding this comment.
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