Conversation
Greptile SummaryRemoved redundancy by replacing Key changes:
All changes are semantically equivalent and maintain the same behavior. The refactoring simplifies the API and improves code readability. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 852bd0c |
|
Review updated until commit 852bd0c Description
|
| Relevant files |
|---|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| ⚡ Recommended focus areas for review |
Missing include for std::ranges
|
- getMaybeHeuristicsFor / getMaybeHeuristicParams return unique_ptr (nullptr = no value) - Update call sites: .has_value() -> != nullptr, remove valueOrError for heuristics - Use NVF_ERROR for heuristics_ check in FusionKernelRuntime Co-authored-by: Cursor <cursoragent@cursor.com>
|
!test |
Summary:
std::optional<std::unique_ptr<T>>is redundant sinceunique_ptrcan represent "no value" vianullptr.Changes:
getMaybeHeuristicsFor/getMaybeHeuristicParamsnow returnstd::unique_ptr<T>(nullptr when unavailable)..has_value()→!= nullptr, removedvalueOrErrorfor heuristics path.FusionKernelRuntimeconstructor usesNVF_ERROR(heuristics_ != nullptr)aftergetMaybeHeuristicsFor.Files: fusion_kernel_runtime.{h,cpp}, fusion_segmenter.{h,cpp}, fusion_executor_cache.cpp, benchmarks (heuristic_*.cpp, shape_inference.cpp).
Made with Cursor