Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM -- it makes me twitch a little to move more code into the 'Core' library area, but there's already precedent for there being GEP-examining methods there (the offset-stripping methods for example). The overall argument seems alright: "We're performing this pointer-examination operation as part of debug-info updating now, because we're also tracking variables when they're on the stack, thus we need this method in the 'Core' library".
llvm/include/llvm/IR/Value.h | ||
---|---|---|
777 | ||
777–780 | I feel this would be better placed next to the earlier methods to do with constant-offsets and bounds checking -- those are dedicated to GEPs and the like. (i.e., 30 lines up) |
I agree with everything you said. Thanks for the review! I'll make those changes before landing.