[all-commits] [llvm/llvm-project] ecd3f8: [SCEVExpander] Use IRBuilderCallbackInserter to ca...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Jul 23 06:26:47 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ecd3f853a85fcfc953046ebff774a1c47295b2ca
https://github.com/llvm/llvm-project/commit/ecd3f853a85fcfc953046ebff774a1c47295b2ca
Author: Florian Hahn <flo at fhahn.com>
Date: 2020-07-23 (Thu, 23 Jul 2020)
Changed paths:
M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Log Message:
-----------
[SCEVExpander] Use IRBuilderCallbackInserter to call rememberInstruction.
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.
Reviewers: mkazantsev, reames, sanjoy.google, lebedev.ri
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D84326
More information about the All-commits
mailing list