Skip to content

Commit a63e318

Browse files
Merge pull request #7021 from michaellilltokiwa/dfa--remove-unused-_writtenFields-bitset
dfa: remove unused _writtenFields bitset
2 parents 0de87f8 + d1ccc7d commit a63e318

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/dev/flang/fuir/analysis/dfa/DFA.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,14 +1023,6 @@ public static Set<String> supportedIntrinsics()
10231023
TreeSet<Integer> _preEffectsAborted = new TreeSet<>();
10241024

10251025

1026-
/**
1027-
* All fields that are ever written. These will be needed even if they are
1028-
* never read unless the assignments are actually removed (which is currently
1029-
* not the case).
1030-
*/
1031-
BitSet _writtenFields = new BitSet();
1032-
1033-
10341026
/**
10351027
* All fields that are ever read.
10361028
*/

src/dev/flang/fuir/analysis/dfa/Instance.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ public void setField(DFA dfa, int field, Value v)
172172
}
173173
_fields.put(field, v);
174174
}
175-
dfa._writtenFields.set(field);
176175
}
177176

178177

0 commit comments

Comments
 (0)