[all-commits] [llvm/llvm-project] 7ddf6e: [SlotIndexes] Use upper/lower bound terminology fo...
Jay Foad via All-commits
all-commits at lists.llvm.org
Wed Oct 11 08:38:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ddf6e915c72de13789959f0f297545ff08df537
https://github.com/llvm/llvm-project/commit/7ddf6e915c72de13789959f0f297545ff08df537
Author: Jay Foad <jay.foad at amd.com>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M llvm/include/llvm/CodeGen/SlotIndexes.h
M llvm/lib/CodeGen/VirtRegMap.cpp
Log Message:
-----------
[SlotIndexes] Use upper/lower bound terminology for MBB searches. NFC. (#68802)
Rename advanceMBBIndex and findMBBIndex to getMBBLowerBound and add
getMBBUpperBound.
The motivations are:
- Make it clear what kind of search is being done, using names inspired
by std::upper/lower_bound.
- Simplify getMBBFromIndex which really wants an upper bound search and
previously had to work hard to get the result it wanted from a lower
bound search.
More information about the All-commits
mailing list