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
- Build Status
Buildable 4114 Build 4114: arc lint + arc unit
Event Timeline
The code logic looks fine. Some minor comments inline.
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
89–93 | Unrelated formatting, I guess. | |
lib/Transforms/Utils/MemorySSA.cpp | ||
1187–1189 | Full stop at the ned of the comment (here and everywhere else) | |
unittests/Transforms/Utils/MemorySSA.cpp | ||
193 | 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 | 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–83 | should this be ///? | |
lib/Transforms/Utils/MemorySSA.cpp | ||
1188 | missing space between "multiple blocks" | |
1191 | please sink this into the if condition | |
1195 | please remove redundant parens | |
lib/Transforms/Utils/MemorySSAUpdater.cpp | ||
299 | please do if (auto ... = dyn_cast<MemoryDef>(FirstDef)) instead | |
unittests/Transforms/Utils/MemorySSA.cpp | ||
193 | please remove |
LGTM. Thanks again!
include/llvm/Transforms/Utils/MemorySSAUpdater.h | ||
---|---|---|
66–83 | 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–83 | I am not sure if doxygen will work, but I am used to doxygen comments for definitions because my ide color them differently :p |
why 2 last params are not used?