Change reduce_equal to return false if no instances are executing
This commit is contained in:
@@ -1420,7 +1420,7 @@ domixed:
|
|||||||
br i1 %alloff, label %doalloff, label %actuallymixed
|
br i1 %alloff, label %doalloff, label %actuallymixed
|
||||||
|
|
||||||
doalloff:
|
doalloff:
|
||||||
ret i1 undef ;; should we return an actual value here?
|
ret i1 false ;; this seems safest
|
||||||
|
|
||||||
actuallymixed:
|
actuallymixed:
|
||||||
; First, figure out which lane is the first active one
|
; First, figure out which lane is the first active one
|
||||||
|
|||||||
@@ -1850,8 +1850,8 @@ There are also variants of these functions that return the value as a
|
|||||||
reference uniform unsigned int64 sameval)
|
reference uniform unsigned int64 sameval)
|
||||||
uniform bool reduce_equal(double, reference uniform double sameval)
|
uniform bool reduce_equal(double, reference uniform double sameval)
|
||||||
|
|
||||||
The value returned by the ``reduce_equal()`` function is undefined if
|
If called when none of the program instances are running,
|
||||||
it is called when none of the program instances are running.
|
``reduce_equal()`` will return ``false``.
|
||||||
|
|
||||||
There are also a number of functions to compute "scan"s of values across
|
There are also a number of functions to compute "scan"s of values across
|
||||||
the program instances. For example, the ``exclusive_scan_and()`` function
|
the program instances. For example, the ``exclusive_scan_and()`` function
|
||||||
|
|||||||
Reference in New Issue
Block a user