We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d1f4a commit c4a21d1Copy full SHA for c4a21d1
1 file changed
include/phasar/Utils/StableVector.h
@@ -52,6 +52,8 @@ class StableVector {
52
53
Iterator &operator++() noexcept {
54
if (LLVM_LIKELY(++It != ItEnd)) {
55
+ /// Let the compiler optimize away the operator== call entirely
56
+ __builtin_assume(It != nullptr);
57
return *this;
58
}
59
@@ -64,6 +66,7 @@ class StableVector {
64
66
// We are at the end of the main loop => enter the tail loop now
65
67
It = *Outer;
68
ItEnd = Pos;
69
70
71
72
// We are still in the main loop
@@ -72,6 +75,7 @@ class StableVector {
75
ItEnd = It + Total;
73
76
74
77
Total <<= 1;
78
79
80
81
0 commit comments