mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-22 19:38:40 +00:00
Reorgnaize this code to be more tidy and readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
441516fb3d
commit
c0fb65da04
@ -193,26 +193,21 @@ void SelectionDAGISel::getAnalysisUsage(AnalysisUsage &AU) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||||
Function &Fn = *mf.getFunction();
|
|
||||||
|
|
||||||
// Do some sanity-checking on the command-line options.
|
// Do some sanity-checking on the command-line options.
|
||||||
assert((!EnableFastISelVerbose || EnableFastISel) &&
|
assert((!EnableFastISelVerbose || EnableFastISel) &&
|
||||||
"-fast-isel-verbose requires -fast-isel");
|
"-fast-isel-verbose requires -fast-isel");
|
||||||
assert((!EnableFastISelAbort || EnableFastISel) &&
|
assert((!EnableFastISelAbort || EnableFastISel) &&
|
||||||
"-fast-isel-abort requires -fast-isel");
|
"-fast-isel-abort requires -fast-isel");
|
||||||
|
|
||||||
// Get alias analysis for load/store combining.
|
Function &Fn = *mf.getFunction();
|
||||||
AA = &getAnalysis<AliasAnalysis>();
|
|
||||||
|
|
||||||
MF = &mf;
|
|
||||||
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
||||||
const TargetRegisterInfo &TRI = *TM.getRegisterInfo();
|
const TargetRegisterInfo &TRI = *TM.getRegisterInfo();
|
||||||
|
|
||||||
if (Fn.hasGC())
|
MF = &mf;
|
||||||
GFI = &getAnalysis<GCModuleInfo>().getFunctionInfo(Fn);
|
|
||||||
else
|
|
||||||
GFI = 0;
|
|
||||||
RegInfo = &MF->getRegInfo();
|
RegInfo = &MF->getRegInfo();
|
||||||
|
AA = &getAnalysis<AliasAnalysis>();
|
||||||
|
GFI = Fn.hasGC() ? &getAnalysis<GCModuleInfo>().getFunctionInfo(Fn) : 0;
|
||||||
|
|
||||||
DEBUG(dbgs() << "\n\n\n=== " << Fn.getName() << "\n");
|
DEBUG(dbgs() << "\n\n\n=== " << Fn.getName() << "\n");
|
||||||
|
|
||||||
CurDAG->init(*MF);
|
CurDAG->init(*MF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user