From 62dbb979c0bd3ab34d0b60b6fedfb66321d81dcf Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Wed, 22 Apr 2015 11:59:37 +0000 Subject: [OPENMP] Fix use of unsigned counters in loops with zero trip count. Patch fixes bugs in codegen for loops with unsigned counters and zero trip count. Previously preconditions for all loops were built using logic (Upper - Lower) > 0. But if the loop is a loop with zero trip count, then Upper - Lower is < 0 only for signed integer, for unsigned we're running into an underflow situation. In this patch we're using original Lower