Details
Diff Detail
- Build Status
Buildable 2408 Build 2408: arc lint + arc unit
Event Timeline
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
232–233 | hmm, this is a quite peculiar implementation of operator preincrement/postincrement as they actually don't increment anything. | |
438–453 | 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 | Very nice use of std::transform. | |
1475–1482 | 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 | 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 | This is standard for inserters. | |
438–453 | yeah, i'll try to fix this. | |
lib/Transforms/Scalar/NewGVN.cpp | ||
1475–1482 | Fixed |
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
232–233 | yeah, makes sense, maybe adding a comment (up to you, not feeling strong about it). |
include/llvm/Transforms/Scalar/GVNExpression.h | ||
---|---|---|
438–453 | This is pretty much beyond my C++ knowledge to fix sanely :) Even sharing the base functions is non-trivial |
hmm, this is a quite peculiar implementation of operator preincrement/postincrement as they actually don't increment anything.