mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Abstract merging of ranges away from number of slots per instruction.
Also make it less aggressive as the current implementation breaks in some cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -126,7 +126,10 @@ namespace llvm {
|
||||
};
|
||||
|
||||
static unsigned getBaseIndex(unsigned index) {
|
||||
return index - (index % 4);
|
||||
return index - (index % InstrSlots::NUM);
|
||||
}
|
||||
static unsigned getBoundaryIndex(unsigned index) {
|
||||
return getBaseIndex(index + InstrSlots::NUM - 1);
|
||||
}
|
||||
static unsigned getLoadIndex(unsigned index) {
|
||||
return getBaseIndex(index) + InstrSlots::LOAD;
|
||||
|
||||
@@ -126,7 +126,10 @@ namespace llvm {
|
||||
};
|
||||
|
||||
static unsigned getBaseIndex(unsigned index) {
|
||||
return index - (index % 4);
|
||||
return index - (index % InstrSlots::NUM);
|
||||
}
|
||||
static unsigned getBoundaryIndex(unsigned index) {
|
||||
return getBaseIndex(index + InstrSlots::NUM - 1);
|
||||
}
|
||||
static unsigned getLoadIndex(unsigned index) {
|
||||
return getBaseIndex(index) + InstrSlots::LOAD;
|
||||
|
||||
Reference in New Issue
Block a user