Details
Diff Detail
- Repository
- rL LLVM
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 | ||
---|---|---|
1311 ↗ | (On Diff #82427) | 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 | ||
---|---|---|
793 ↗ | (On Diff #82427) | Nit: Comments terminate with a full stop (here and elsewhere). |
1311 ↗ | (On Diff #82427) | 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? |
1327 ↗ | (On Diff #82427) | I think the correct spelling is #ifndef NDEBUG unless you mean something else (I'm not entirely sure there's a DEBUG macro) |
1329 ↗ | (On Diff #82427) | This could be DEBUG(dbgs() ...) |
1445–1452 ↗ | (On Diff #82427) | 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 | ||
---|---|---|
1311 ↗ | (On Diff #82427) | 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 | ||
---|---|---|
1311 ↗ | (On Diff #82427) | Yeah, feel free to handle it in a follow-up. |