llvm-project
a443951e - Require GraphHasNodeNumbers in llvm::LoopInfoBase; drop the DenseMap fallback (#207905)

Commit
10 days ago
Require GraphHasNodeNumbers in llvm::LoopInfoBase; drop the DenseMap fallback (#207905) LoopInfoBase kept a DenseMap fallback for block types whose GraphTraits has no getNumber() (std::conditional_t on GraphHasNodeNumbers). With the last such in-tree users now numbered (mlir::Block #207617 and BOLT's BinaryBasicBlock #207899), require GraphHasNodeNumbers via static_assert and make BBMap unconditionally a SmallVector indexed by block number, dropping the DenseMap branch in getLoopFor/changeLoopFor/removeBlock/analyze/verify. Aided by Claude Opus 4.8
Author
Parents
Loading