IfConversion: Handle inclusive ranges more carefully.
authorKyle Butt <kyle+llvm@iteratee.net>
Thu, 18 Aug 2016 22:09:23 +0000 (22:09 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Thu, 18 Aug 2016 22:09:23 +0000 (22:09 +0000)
commitd76755ec95112132aba5ce57110ad5c8652db3f3
tree10903e0ab2af61d3e86456fba907143c5b083f75
parent03bdd8f797761dd10927f283f51e612db9e9f788
IfConversion: Handle inclusive ranges more carefully.

This may affect calculations for thresholds, but is not a significant change
in behavior.

The problem was that an inclusive range must have an additonal flag to showr
that it is empty, because otherwise begin == end implies that the range has one
element, and it may not be possible to move past on either side.

llvm-svn: 279166
llvm/lib/CodeGen/IfConversion.cpp