mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Pass LiveQueryResult by value
This makes the API a bit more natural to use and makes it easier to make LiveRanges implementation details private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -415,7 +415,8 @@ void ScheduleDAGInstrs::addVRegUseDeps(SUnit *SU, unsigned OperIdx) {
|
||||
|
||||
// Lookup this operand's reaching definition.
|
||||
assert(LIS && "vreg dependencies requires LiveIntervals");
|
||||
LiveRangeQuery LRQ(LIS->getInterval(Reg), LIS->getInstructionIndex(MI));
|
||||
LiveQueryResult LRQ
|
||||
= LIS->getInterval(Reg).Query(LIS->getInstructionIndex(MI));
|
||||
VNInfo *VNI = LRQ.valueIn();
|
||||
|
||||
// VNI will be valid because MachineOperand::readsReg() is checked by caller.
|
||||
|
||||
Reference in New Issue
Block a user