Index: src/data-flow.h |
diff --git a/src/data-flow.h b/src/data-flow.h |
index ad96c2cc5f0e3c0c5d014f6fe5c0f9e68d11ee41..bfd238d24ee326d52bdc902792f2d71a0ab8c59f 100644 |
--- a/src/data-flow.h |
+++ b/src/data-flow.h |
@@ -137,6 +137,17 @@ class BitVector: public ZoneObject { |
} |
} |
+ bool IntersectIsChanged(const BitVector& other) { |
+ DCHECK(other.length() == length()); |
+ bool changed = false; |
+ for (int i = 0; i < data_length_; i++) { |
+ uint32_t old_data = data_[i]; |
+ data_[i] &= other.data_[i]; |
+ if (data_[i] != old_data) changed = true; |
+ } |
+ return changed; |
+ } |
+ |
void Subtract(const BitVector& other) { |
DCHECK(other.length() == length()); |
for (int i = 0; i < data_length_; i++) { |