diff options
author | Rahman Lavaee <rahmanl@google.com> | 2022-12-13 09:52:05 -0800 |
---|---|---|
committer | Rahman Lavaee <rahmanl@google.com> | 2022-12-13 11:13:57 -0800 |
commit | 96b6ee1bdc11eeea9d202a14d5975aac992f4176 (patch) | |
tree | 70baaf0d20fa557b2b68850331bf7b6f43192049 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | f54497f114b9b5acaa8ebff296594b2cd7e437dd (diff) | |
download | llvm-96b6ee1bdc11eeea9d202a14d5975aac992f4176.zip llvm-96b6ee1bdc11eeea9d202a14d5975aac992f4176.tar.gz llvm-96b6ee1bdc11eeea9d202a14d5975aac992f4176.tar.bz2 |
Revert "[Propeller] Use Fixed MBB ID instead of volatile MachineBasicBlock::Number."
This reverts commit 6015a045d768feab3bae9ad9c0c81e118df8b04a.
Differential Revision: https://reviews.llvm.org/D139952
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index c639f95..7a377b4 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -563,11 +563,6 @@ void MachineBasicBlock::printName(raw_ostream &os, unsigned printNameFlags, } hasAttributes = true; } - if (getBBID().has_value()) { - os << (hasAttributes ? ", " : " ("); - os << "bb_id " << *getBBID(); - hasAttributes = true; - } } if (hasAttributes) @@ -1656,11 +1651,6 @@ bool MachineBasicBlock::sizeWithoutDebugLargerThan(unsigned Limit) const { return false; } -unsigned MachineBasicBlock::getBBIDOrNumber() const { - uint8_t BBAddrMapVersion = getParent()->getContext().getBBAddrMapVersion(); - return BBAddrMapVersion < 2 ? getNumber() : *getBBID(); -} - const MBBSectionID MBBSectionID::ColdSectionID(MBBSectionID::SectionType::Cold); const MBBSectionID MBBSectionID::ExceptionSectionID(MBBSectionID::SectionType::Exception); |