Closed
Description
GCC is able to eliminate the third assert in the following code:
#include <assert.h>
void f(int a, int b, int c) {
assert(a < b);
assert(b < c);
assert(a < c);
}
https://gcc.godbolt.org/z/s9a9YM6GK
However, if I change the type from int
to unsigned int
LLVM is able to figure it out.