This lets one add aliasing stores to the updater.
(i'm next going to move the creation/etc functions to the updater)
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
The code logic looks fine. Some minor comments inline.
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
89–93 ↗ | (On Diff #89059) | Unrelated formatting, I guess. |
lib/Transforms/Utils/MemorySSA.cpp | ||
1187–1189 ↗ | (On Diff #89059) | Full stop at the ned of the comment (here and everywhere else) |
unittests/Transforms/Utils/MemorySSA.cpp | ||
193 ↗ | (On Diff #89059) | IIRC dump() is supposed to be used only in a debugger and print() should be used instead, but I might be wrong. |
lib/Transforms/Utils/MemorySSA.cpp | ||
---|---|---|
1915–1916 ↗ | (On Diff #89060) | unrelated formatting I think (also I think the #if is redundant if you mark dump() as LLVM_DUMP_METHOD?) |
handful o'nits to supplement piotr's comments, then this LGTM.
thanks!
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
66 ↗ | (On Diff #89060) | should this be ///? |
lib/Transforms/Utils/MemorySSA.cpp | ||
1188 ↗ | (On Diff #89060) | missing space between "multiple blocks" |
1191 ↗ | (On Diff #89060) | please sink this into the if condition |
1195 ↗ | (On Diff #89060) | please remove redundant parens |
lib/Transforms/Utils/MemorySSAUpdater.cpp | ||
299 ↗ | (On Diff #89060) | please do if (auto ... = dyn_cast<MemoryDef>(FirstDef)) instead |
unittests/Transforms/Utils/MemorySSA.cpp | ||
193 ↗ | (On Diff #89059) | please remove |
LGTM. Thanks again!
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
66 ↗ | (On Diff #89060) | no clue. I'm happy to assume you're right; we can fix it later if doxygen doesn't like it. ¯\_(ツ)_/¯ |
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
66 ↗ | (On Diff #89060) | I am not sure if doxygen will work, but I am used to doxygen comments for definitions because my ide color them differently :p |