mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +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:
@@ -908,7 +908,7 @@ void ConnectedVNInfoEqClasses::Distribute(LiveInterval *LIV[],
|
||||
Idx = LIS.getSlotIndexes()->getIndexBefore(MI);
|
||||
else
|
||||
Idx = LIS.getInstructionIndex(MI);
|
||||
LiveRangeQuery LRQ(LI, Idx);
|
||||
LiveQueryResult LRQ = LI.Query(Idx);
|
||||
const VNInfo *VNI = MO.readsReg() ? LRQ.valueIn() : LRQ.valueDefined();
|
||||
// In the case of an <undef> use that isn't tied to any def, VNI will be
|
||||
// NULL. If the use is tied to a def, VNI will be the defined value.
|
||||
|
||||
Reference in New Issue
Block a user