This patch prepares ValueLatticeElement to be used by SCCP, by:
- making the mark* functions public
- make the mark* functions return a bool indicating if the value has changed.
Differential D60581
[ValueLattice] Make mark* functions public, return if value changed. fhahn on Apr 11 2019, 1:55 PM. Authored by
Details This patch prepares ValueLatticeElement to be used by SCCP, by:
Diff Detail
Unit Tests Event TimelineComment Actions I'm not necessarily sure I like this. It's simply spreading in a general framework a concept that shouldn't exist to begin with. I'd rather remove forced constant from SCCP, even though it might result in us losing some optimization power. Comment Actions I've put up a commit removing forcedconstant on top of the integer range support: D61314. This is mostly to have an easy way to compare the impact of forcedconstant and could be folded in the integer range support. But maybe it is easier to review/commit/test as separate steps. Comment Actions Unit tests: pass. 61085 tests passed, 0 failed and 728 were skipped. clang-tidy: pass. clang-format: pass. Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml Comment Actions Address comments: remove unnecessary assert, undo unnnecessary changes in getCompare. Comment Actions Thanks for taking a look. I plan to land this, once D60582 has been accepted as well. |
I believe this assert is useless after the isa<>. Can either be dropped or the previous order restored (not sure why it was changed?)