//===-- RegAllocLinearScan.cpp - Linear Scan register allocator -----------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This file implements a linear scan register allocator.////===----------------------------------------------------------------------===//#define DEBUG_TYPE "regalloc"#include"LiveDebugVariables.h"#include"LiveRangeEdit.h"#include"VirtRegMap.h"#include"VirtRegRewriter.h"#include"RegisterClassInfo.h"#include"Spiller.h"#include"RegisterCoalescer.h"#include"llvm/Analysis/AliasAnalysis.h"#include"llvm/Function.h"#include"llvm/CodeGen/CalcSpillWeights.h"#include"llvm/CodeGen/LiveIntervalAnalysis.h"#include"llvm/CodeGen/MachineFunctionPass.h"#include"llvm/CodeGen/MachineInstr.h"#include"llvm/CodeGen/MachineLoopInfo.h"#include"llvm/CodeGen/MachineRegisterInfo.h"#include"llvm/CodeGen/Passes.h"#include"llvm/CodeGen/RegAllocRegistr