[all-commits] [llvm/llvm-project] 7829c3: [SCEVExpander] Add helper to clean up instrs inser...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Tue Aug 11 01:38:59 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7829c33084a7a5097533cf862daef521380c4e63
https://github.com/llvm/llvm-project/commit/7829c33084a7a5097533cf862daef521380c4e63
Author: Florian Hahn <flo at fhahn.com>
Date: 2020-08-11 (Tue, 11 Aug 2020)
Changed paths:
M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Log Message:
-----------
[SCEVExpander] Add helper to clean up instrs inserted while expanding.
SCEVExpander already tracks which instructions have been inserted n
InsertedValues/InsertedPostIncValues. This patch adds an additional
vector to collect the instructions in insertion order. This can then be
used to remove exactly the instructions inserted by the expander.
This replaces ExpandedValuesCleaner, which in some cases might remove
values not inserted by the expander (e.g. if a value was dead before
insertion and is then used during expansion).
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D84327
More information about the All-commits
mailing list