[PATCH] D141664: [GVN][NFC] Refactor GVN::AnalyzeLoadAvailability method

Sergei Kachkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 00:39:00 PST 2023


kachkov98 created this revision.
Herald added subscribers: nlopes, hiraditya.
Herald added a project: All.
kachkov98 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Simplify AnalyzeLoadAvailability code:

1. Use std::optional for return value
2. Use range-based loop for non-local dependencies


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141664

Files:
  llvm/include/llvm/Transforms/Scalar/GVN.h
  llvm/lib/Transforms/Scalar/GVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141664.488890.patch
Type: text/x-patch
Size: 9249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/a352b68a/attachment.bin>


More information about the llvm-commits mailing list