Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
232–233 ↗ | (On Diff #82482) | hmm, this is a quite peculiar implementation of operator preincrement/postincrement as they actually don't increment anything. |
438–453 ↗ | (On Diff #82482) | op_inserter and int_op_inserter are nearly identical. Is there any chance you can templatize to reduce the duplication? |
lib/Transforms/Scalar/NewGVN.cpp | ||
418–425 ↗ | (On Diff #82482) | Very nice use of std::transform. |
1475–1482 ↗ | (On Diff #82482) | This is a very minor nit, but (almost) everywhere else in llvm we use BB for a BasicBlock variable. Here we had B to distinguish between it and BB, but I think it makes sense to use BB instead. |
1753–1770 ↗ | (On Diff #82482) | Thanks for expanding the comment. You can consider committing this separately to reduce the diff (as it's fairly independent change). |
Side note, there are some spurious whitespace changes so you may want to clang-format the patch while you're there.
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
232–233 ↗ | (On Diff #82482) | This is standard for inserters. |
438–453 ↗ | (On Diff #82482) | yeah, i'll try to fix this. |
lib/Transforms/Scalar/NewGVN.cpp | ||
1475–1482 ↗ | (On Diff #82482) | Fixed |
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
232–233 ↗ | (On Diff #82482) | yeah, makes sense, maybe adding a comment (up to you, not feeling strong about it). |
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
438–453 ↗ | (On Diff #82482) | This is pretty much beyond my C++ knowledge to fix sanely :) Even sharing the base functions is non-trivial |
LGTM
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
438–453 ↗ | (On Diff #82482) | Don't worry then =) |