aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-08-11 09:30:31 +0100
committerFlorian Hahn <flo@fhahn.com>2020-08-11 09:30:31 +0100
commit7829c33084a7a5097533cf862daef521380c4e63 (patch)
treefb9a25e38fefbca2c27cc307ab4dad2e3286fad9 /clang/lib/CodeGen/CodeGenModule.cpp
parent31fd64ac57a2005c0691b8870e28b4421cf67047 (diff)
downloadllvm-7829c33084a7a5097533cf862daef521380c4e63.zip
llvm-7829c33084a7a5097533cf862daef521380c4e63.tar.gz
llvm-7829c33084a7a5097533cf862daef521380c4e63.tar.bz2
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions