Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1344 ↗ | (On Diff #123458) | what's the point of this using statement? I think it would be more readable to do this in runOnFunction (see the depth_first loop over basic blocks). |
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | ||
---|---|---|
1344 ↗ | (On Diff #123458) | InstVisitor has other overloads of visit() seems like this visitor exists for things exactly like this, and I see similar usage in other places. moving check into runOnFunction will make us to copy loop over instructions which does not look more readable to me. I'd prefer to keep as much as possible logic in InstVisitor. I guess we have own look for bblocks in runOnFunction only to have depth_first. |