Simplify AnalyzeLoadAvailability code:
- Use std::optional for return value
- Use range-based loop for non-local dependencies
Paths
| Differential D141664
[GVN][NFC] Refactor GVN::AnalyzeLoadAvailability method ClosedPublic Authored by kachkov98 on Jan 13 2023, 12:38 AM.
Details
Summary Simplify AnalyzeLoadAvailability code:
Diff Detail
Event Timelinekachkov98 added a child revision: D141619: [GVN] Refactor handling of pointer-select in GVN pass.Jan 13 2023, 12:46 AM This revision is now accepted and ready to land.Jan 13 2023, 1:10 AM This revision was landed with ongoing or failed builds.Jan 13 2023, 1:25 AM Closed by commit rGfc9b92e14f88: [GVN][NFC] Refactor GVN::AnalyzeLoadAvailability method (authored by kachkov98). · Explain Why This revision was automatically updated to reflect the committed changes.
Diff 488901 llvm/include/llvm/Transforms/Scalar/GVN.h
llvm/lib/Transforms/Scalar/GVN.cpp
|