projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9fd76
)
[NFC] ConstantRange::subWithNoWrap(): fixup comment
author
Roman Lebedev
<lebedev.ri@gmail.com>
Fri, 8 Nov 2019 14:27:42 +0000
(17:27 +0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Fri, 8 Nov 2019 14:52:43 +0000
(17:52 +0300)
llvm/lib/IR/ConstantRange.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/ConstantRange.cpp
b/llvm/lib/IR/ConstantRange.cpp
index
71dd2d9
..
68c3c7a
100644
(file)
--- a/
llvm/lib/IR/ConstantRange.cpp
+++ b/
llvm/lib/IR/ConstantRange.cpp
@@
-915,7
+915,7
@@
ConstantRange ConstantRange::subWithNoWrap(const ConstantRange &Other,
// If an overflow happens for every value pair in these two constant ranges,
// we must return Empty set. In signed case, we get that for free, because we
- // get lucky that intersection of
add
() with ssub_sat() results in an
+ // get lucky that intersection of
sub
() with ssub_sat() results in an
// empty set. But for unsigned we must perform the overflow check manually.
if (NoWrapKind & OBO::NoSignedWrap)