File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1120,6 +1120,9 @@ pub enum AllocationKind {
1120
1120
///
1121
1121
/// (This trait's design is inspired by, and derives heavily from, the
1122
1122
/// trait of the same name in regalloc.rs.)
1123
+ ///
1124
+ /// The ids used in [`Block`] and [`VReg`] must start their numbering
1125
+ /// at zero and be sequential.
1123
1126
pub trait Function {
1124
1127
// -------------
1125
1128
// CFG traversal
@@ -1557,10 +1560,12 @@ pub enum RegAllocError {
1557
1560
/// a block param.
1558
1561
SSA ( VReg , Inst ) ,
1559
1562
/// Invalid basic block: does not end in branch/ret, or contains a
1560
- /// branch/ret in the middle.
1563
+ /// branch/ret in the middle, or the VReg ids do not start at zero
1564
+ /// or aren't numbered sequentially.
1561
1565
BB ( Block ) ,
1562
1566
/// Invalid branch: operand count does not match sum of block
1563
- /// params of successor blocks.
1567
+ /// params of successor blocks, or the block ids do not start at
1568
+ /// zero or aren't numbered sequentially.
1564
1569
Branch ( Inst ) ,
1565
1570
/// A VReg is live-in on entry; this is not allowed.
1566
1571
EntryLivein ,
You can’t perform that action at this time.
0 commit comments