[PATCH] D84326: [SCEVExpander] Use IRBuilderCallbackInserter to call rememberInstruction.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 07:29:54 PDT 2020


fhahn created this revision.
fhahn added reviewers: mkazantsev, reames, sanjoy.google, lebedev.ri.
Herald added subscribers: javed.absar, hiraditya.
Herald added a project: LLVM.

Currently there are plenty of instructions that SCEVExpander creates but
does not track as created. IRBuilder allows specifying a callback
whenever an instruction is inserted. Use this to call
rememberInstruction automatically for each created instruction.

There are still a few rememberInstruction calls remaining, because in
some cases Inst::Create functions are used to construct instructions.

Suggested by @lebedev.ri in D75980 <https://reviews.llvm.org/D75980>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84326

Files:
  llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
  llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84326.279821.patch
Type: text/x-patch
Size: 6922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200722/6e975b1d/attachment.bin>


More information about the llvm-commits mailing list