diff options
author | Eric Christopher <echristo@gmail.com> | 2014-07-23 22:27:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-07-23 22:27:10 +0000 |
commit | 6d0e40bfbfa859a0adfdade2adb7280a716f76fa (patch) | |
tree | 2f9850b618b80361243bce62c00a3b9b74e3718b /llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp | |
parent | 5addace56d25523af6ce9ecf5406a17c93d72134 (diff) | |
download | llvm-6d0e40bfbfa859a0adfdade2adb7280a716f76fa.zip llvm-6d0e40bfbfa859a0adfdade2adb7280a716f76fa.tar.gz llvm-6d0e40bfbfa859a0adfdade2adb7280a716f76fa.tar.bz2 |
Reorganize and simplify local variables.
llvm-svn: 213809
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp b/llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp index 624003f..8380a6f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp @@ -40,19 +40,17 @@ static cl::opt<signed> RegPressureThreshold( "dfa-sched-reg-pressure-threshold", cl::Hidden, cl::ZeroOrMore, cl::init(5), cl::desc("Track reg pressure and switch priority to in-depth")); - -ResourcePriorityQueue::ResourcePriorityQueue(SelectionDAGISel *IS) : - Picker(this), - InstrItins(IS->getTargetLowering()->getTargetMachine().getInstrItineraryData()) -{ - TII = IS->getTargetLowering()->getTargetMachine().getInstrInfo(); - TRI = IS->getTargetLowering()->getTargetMachine().getRegisterInfo(); - TLI = IS->getTargetLowering(); - - const TargetMachine &tm = (*IS->MF).getTarget(); - ResourcesModel = tm.getInstrInfo()->CreateTargetScheduleState(&tm,nullptr); - // This hard requirement could be relaxed, but for now - // do not let it procede. +ResourcePriorityQueue::ResourcePriorityQueue(SelectionDAGISel *IS) + : Picker(this), + InstrItins( + IS->getTargetLowering()->getTargetMachine().getInstrItineraryData()) { + const TargetMachine &TM = (*IS->MF).getTarget(); + TRI = TM.getRegisterInfo(); + TLI = IS->getTargetLowering(); + TII = TM.getInstrInfo(); + ResourcesModel = TII->CreateTargetScheduleState(&TM, nullptr); + // This hard requirement could be relaxed, but for now + // do not let it procede. assert (ResourcesModel && "Unimplemented CreateTargetScheduleState."); unsigned NumRC = TRI->getNumRegClasses(); |