mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-30 03:28:50 +00:00
Update to in-place spilling framework. Includes live interval scaling and trivial rewriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,15 +15,24 @@
|
||||
|
||||
#define DEBUG_TYPE "livestacks"
|
||||
#include "llvm/CodeGen/LiveStackAnalysis.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include <limits>
|
||||
using namespace llvm;
|
||||
|
||||
char LiveStacks::ID = 0;
|
||||
static RegisterPass<LiveStacks> X("livestacks", "Live Stack Slot Analysis");
|
||||
|
||||
void LiveStacks::scaleNumbering(int factor) {
|
||||
// Scale the intervals.
|
||||
for (iterator LI = begin(), LE = end(); LI != LE; ++LI) {
|
||||
LI->second.scaleNumbering(factor);
|
||||
}
|
||||
}
|
||||
|
||||
void LiveStacks::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
|
Reference in New Issue
Block a user