[PATCH] D155237: [ConstantHoisting] stop rematerializing InsertionPt
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 14:33:48 PDT 2023
nickdesaulniers created this revision.
Herald added a subscriber: hiraditya.
Herald added a reviewer: ributzka.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Reading this code, I noticed that we call findMatInsertPt a lot, for the
same inputs. Calculate it once and save the result.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155237
Files:
llvm/include/llvm/Transforms/Scalar/ConstantHoisting.h
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155237.540184.patch
Type: text/x-patch
Size: 6806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/b34acfae/attachment.bin>
More information about the llvm-commits
mailing list