Skip to content

Commit

Permalink
Merge pull request #602 from tgiphil/016-RedBlackIntervalTree
Browse files Browse the repository at this point in the history
Register Allocator Enhancements
  • Loading branch information
tgiphil committed Feb 27, 2019
2 parents e054507 + 598830a commit b82d87e
Show file tree
Hide file tree
Showing 24 changed files with 1,262 additions and 435 deletions.
22 changes: 0 additions & 22 deletions Source/Mosa.Compiler.Framework.xUnit/LiveRangeTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Framework.IR;
using Mosa.Compiler.Framework.RegisterAllocator;
using System.Collections.Generic;
using Xunit;

namespace Mosa.Compiler.Framework.xUnit
{
Expand All @@ -27,24 +24,5 @@ private static BasicBlocks CreateBasicBlockInstructionSet()

return basicBlocks;
}

[Fact]
public void LiveRangeTest()
{
var basicBlocks = CreateBasicBlockInstructionSet();

GreedyRegisterAllocator.NumberInstructions(basicBlocks);

var liveRange = new LiveRange(
new SlotIndex(basicBlocks[0].First),
new SlotIndex(basicBlocks[0].Last),
new List<SlotIndex>(),
new List<SlotIndex>()
);

Assert.True(liveRange.IsEmpty);

//liveRange.SplitAt(basicBlocks.)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Framework.Linker;
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Linq;
using System.IO;

namespace Mosa.Compiler.Framework.CompilerStages
{
Expand Down

0 comments on commit b82d87e

Please sign in to comment.