[ConstantRange] Rename a method and add more doc
authorSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 22 Feb 2016 16:13:02 +0000 (16:13 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 22 Feb 2016 16:13:02 +0000 (16:13 +0000)
commit5079f6260f03c791d7125322d1d3247c0e97e79a
tree67bab3e58834f925c7e5eb0a27b96fe1d8c42acb
parent527a4205505155503de1fb1daecea472ba95358b
[ConstantRange] Rename a method and add more doc

Rename makeNoWrapRegion to a more obvious makeGuaranteedNoWrapRegion,
and add a comment about the counter-intuitive aspects of the function.
This is to help prevent cases like PR26628.

llvm-svn: 261532
llvm/include/llvm/IR/ConstantRange.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/IR/ConstantRange.cpp
llvm/unittests/IR/ConstantRangeTest.cpp