allocate_device_array: avoid superfluous max expressions
commit01b25c29abb8301cc90a799356edb8f9af94fa66
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 16 May 2014 09:53:27 +0000 (16 10:53 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 16 May 2014 11:38:02 +0000 (16 13:38 +0200)
tree9dd5d363c9efa109f5d789146318aaf304c5137a
parentfd0e71449a0435d047c947d44fc266509ab1e1c5
allocate_device_array: avoid superfluous max expressions

Avoid size expressions such as "max(sizeof(int), sizeof(int))", by
not generating a max expression if gpu_array_positive_size_guard
yields a trivial condition.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
opencl.c