Attempt to fix error by avoiding negative values going into gcd, in case that was the cause.
Attempt to fix error by avoiding negative values going into gcd, in
case that was the cause.


Former-commit-id: ddff19106d7dcb594590407b233cdbb8bf9f7923 [formerly bb67c0e990439716c4f67e1948009578f29f8771]
Former-commit-id: 2a40fbb0d6f572dabe61a5ea5c261594005014bc
darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide