[ConstantRange] Exclude full set from isSignWrappedSet()
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 26 Mar 2019 22:37:26 +0000 (22:37 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 26 Mar 2019 22:37:26 +0000 (22:37 +0000)
commite6eef49f05dadd781a708e68c2fc91ff5aff64a1
tree7baa870f2f0585a82db061aae8c917f7fb68bca2
parentdb8a742206749b2677c78d0125a21968a7df37b3
[ConstantRange] Exclude full set from isSignWrappedSet()

Split off from D59749. This uses a simpler and more efficient
implementation of isSignWrappedSet(), and considers full sets
as non-wrapped, to be consistent with isWrappedSet(). Otherwise
the behavior is unchanged.

There are currently only two users of this function and both already
check for isFullSet() || isSignWrappedSet(), so this is not going to
cause a change in overall behavior.

Differential Revision: https://reviews.llvm.org/D59848

llvm-svn: 357039
llvm/include/llvm/IR/ConstantRange.h
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp