[llvm] [CodeLayout][NFC] Using MergedVector to avoid extra vector allocations (PR #68724)
Rahman Lavaee via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 10:52:22 PDT 2023
================
@@ -507,43 +507,56 @@ struct MergedChain {
const NodeT *getFirstNode() const { return *Begin1; }
+ bool empty() const { return Begin1 == End1; }
+
+ void append(ObjIter Begin, ObjIter End) {
----------------
rlavaee wrote:
This function is introduced just because we're reusing this struct for Jumps (which can only contain up to 2 ranges of jumps).
https://github.com/llvm/llvm-project/pull/68724
More information about the llvm-commits
mailing list