[ConstantRange] Rename isWrappedSet() to isUpperWrapped()
commit73c0156568bab05ebe8a24ead6d11b3494f50844
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 27 Mar 2019 18:19:33 +0000 (27 18:19 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 27 Mar 2019 18:19:33 +0000 (27 18:19 +0000)
tree42a25dc9b7710078ed44533b3fa7f2c685826be1
parent0eda3be9e2f9893db93b78b904692b5b915cad46
[ConstantRange] Rename isWrappedSet() to isUpperWrapped()

Split out from D59749. The current implementation of isWrappedSet()
doesn't do what it says on the tin, and treats ranges like
[X, Max] as wrapping, because they are represented as [X, 0) when
using half-inclusive ranges. This also makes it inconsistent with
the semantics of isSignWrappedSet().

This patch renames isWrappedSet() to isUpperWrapped(), in preparation
for the introduction of a new isWrappedSet() method with corrected
behavior.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@357107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScopInfo.cpp