mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -967,14 +967,12 @@ void RAGreedy::addThroughConstraints(InterferenceCache::Cursor Intf,
|
||||
BCS[B].Exit = SpillPlacement::PrefSpill;
|
||||
|
||||
if (++B == GroupSize) {
|
||||
ArrayRef<SpillPlacement::BlockConstraint> Array(BCS, B);
|
||||
SpillPlacer->addConstraints(Array);
|
||||
SpillPlacer->addConstraints(makeArrayRef(BCS, B));
|
||||
B = 0;
|
||||
}
|
||||
}
|
||||
|
||||
ArrayRef<SpillPlacement::BlockConstraint> Array(BCS, B);
|
||||
SpillPlacer->addConstraints(Array);
|
||||
SpillPlacer->addConstraints(makeArrayRef(BCS, B));
|
||||
SpillPlacer->addLinks(makeArrayRef(TBS, T));
|
||||
}
|
||||
|
||||
@@ -1013,7 +1011,7 @@ void RAGreedy::growRegion(GlobalSplitCandidate &Cand) {
|
||||
|
||||
// Compute through constraints from the interference, or assume that all
|
||||
// through blocks prefer spilling when forming compact regions.
|
||||
ArrayRef<unsigned> NewBlocks = makeArrayRef(ActiveBlocks).slice(AddedTo);
|
||||
auto NewBlocks = makeArrayRef(ActiveBlocks).slice(AddedTo);
|
||||
if (Cand.PhysReg)
|
||||
addThroughConstraints(Cand.Intf, NewBlocks);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user