[all-commits] [llvm/llvm-project] b9e3af: [LiveInterval] Add RemoveDeadValNo argument to rem...
Jay Foad via All-commits
all-commits at lists.llvm.org
Wed Oct 27 01:43:46 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9e3af124b760a2ed15cb951a315f20cea687307
https://github.com/llvm/llvm-project/commit/b9e3af124b760a2ed15cb951a315f20cea687307
Author: Jay Foad <jay.foad at amd.com>
Date: 2021-10-27 (Wed, 27 Oct 2021)
Changed paths:
M llvm/include/llvm/CodeGen/LiveInterval.h
M llvm/lib/CodeGen/LiveInterval.cpp
M llvm/lib/CodeGen/LiveIntervals.cpp
Log Message:
-----------
[LiveInterval] Add RemoveDeadValNo argument to removeSegment(iterator)
Add an optional bool RemoveDeadValNo argument to the
removeSegment(iterator) overload, for consistency with the other
overloads. This gives clients a way to remove dead valnos while also
getting an updated iterator returned (in the manner of vector::erase).
Use this to clean up some inefficient code in
LiveIntervals::repairOldRegInRange. NFC.
Differential Revision: https://reviews.llvm.org/D110560
More information about the All-commits
mailing list