Jump to conversation
Unresolved conversations (0)
Nice work!

Nice work!

All of your conversations have been resolved.

Resolved conversations (7)
@nikic nikic Sep 19, 2023
I think the offset should be `int64_t` and use `trySExtValue()` here. GEP offsets are signed. (Mainly for clarify, I think it will not make a functional difference?)
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
DianQK
@nikic nikic Sep 18, 2023
nit: Use `auto *` with `cast<>`.
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@nikic nikic Sep 18, 2023
The indents in these functions look wrong -- clang-format?
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
DianQK
@nikic nikic Sep 18, 2023
Use std::optional instead?
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
DianQK
@nikic nikic Sep 16, 2023
```suggestion unsigned DenseMapInfo<GEPValue>::getHashValue(const GEPValue &Val) { ``` Here and elsewhere.
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@nikic nikic Sep 14, 2023
nit: Avoid duplicate getIndexTypeSizeInBits() call (can't have different bitwidths if the pointer operand is the same)
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
@nikic nikic Sep 14, 2023
nit: getPointerOperand().
Outdated
llvm/lib/Transforms/Scalar/EarlyCSE.cpp