[PATCH] D87691: [EarlyCSE] Small refactoring changes, NFC

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 06:58:46 PDT 2020


kparzysz created this revision.
kparzysz added reviewers: asbirlea, efriedma, jdoerfert.
Herald added subscribers: jfb, hiraditya.
Herald added a project: LLVM.
kparzysz requested review of this revision.

1. Store intrinsic ID in ParseMemoryInst instead of a boolean flag `IsTargetMemInst`. This will make it easier to add support for target-independent intrinsics.
2. Extract the complex multiline conditions from `EarlyCSE::processNode` into a new function `getMatchingValue`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87691

Files:
  llvm/lib/Transforms/Scalar/EarlyCSE.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87691.291902.patch
Type: text/x-patch
Size: 7431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/1d50e701/attachment.bin>


More information about the llvm-commits mailing list