Details
Diff Detail
- Build Status
Buildable 2393 Build 2393: arc lint + arc unit
Event Timeline
- Add comments and fix a small issue with processed counts.
Updating D28084: Value number stores and memory states so we can detect when memory
states are equivalent (IE store of same value to memory).
Tests coming.
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
1304 | It would be nice to share this part with performSymbolicPHIEvaluation, but we use a different lookup. |
This is very nice. I think I got the latest revision (unless there's an issue with phabricator) and I see many tests in Transform/NewGVN failing, some of them hitting the assertion in updateProcessedCount().
In the meanwhile, some minor comment inline.
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
787 | Nit: Comments terminate with a full stop (here and elsewhere). | |
1304 | I agree it's not great to have the logic in two different places, I'll think about it. Maybe we can add a FIXME in the meanwhile? | |
1320 | I think the correct spelling is #ifndef NDEBUG unless you mean something else (I'm not entirely sure there's a DEBUG macro) | |
1322 | This could be DEBUG(dbgs() ...) | |
1438–1447 | Nit: the style guide suggests to uses braces around the else as well. |
- Update for review comments, add tests, fix porting bug
Updating D28084: Value number stores and memory states so we can detect when memory
states are equivalent (IE store of same value to memory).
Tests coming.
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
1304 | I've cleaned up this version, i'll clean up the other version in a followup and see if we can merge them using a template function. |
- Update for review comments, add tests
Updating D28084: Value number stores and memory states so we can detect when memory
states are equivalent (IE store of same value to memory).
Tests coming.
lib/Transforms/Scalar/NewGVN.cpp | ||
---|---|---|
1304 | Yeah, feel free to handle it in a follow-up. |
Nit: Comments terminate with a full stop (here and elsewhere).