diff options
| author | Florian Hahn <flo@fhahn.com> | 2020-07-23 14:19:01 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2020-07-23 14:25:28 +0100 |
| commit | ecd3f853a85fcfc953046ebff774a1c47295b2ca (patch) | |
| tree | f92d9d0ed7263538dbddffc5b13d99157765d2c5 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | c798628fbdcc88b8e4b478c7a44aac66ccd74256 (diff) | |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
