Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Utils/Evaluator.cpp | ||
---|---|---|
267–269 | Looks like this could pass by reference, rather than pointer (since it unconditionally dereferences in the implementation) | |
282 | This one's less clear - up to you if you want to look closer to figure out if it could be reference. (the only issue is whether callers actually need to pass null CB when they pass null F - if they still pass non-null CB when F is null, then CB might as well be a reference) | |
571 | No need for the cast here, since CB is already a CallBase? |
llvm/lib/Transforms/Utils/Evaluator.cpp | ||
---|---|---|
282 | Both members are only used internally, we could make them private. |
llvm/include/llvm/Transforms/Utils/Evaluator.h | ||
---|---|---|
90 | Can we change these to SmallVectorImpl<Constant *>& while we're already touching these lines? No point in forcing a specific size on the caller or repeating it. |
Can we change these to SmallVectorImpl<Constant *>& while we're already touching these lines? No point in forcing a specific size on the caller or repeating it.