diff options
author | Matthias Braun <matze@braunis.de> | 2013-10-10 21:28:52 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2013-10-10 21:28:52 +0000 |
commit | 88dd0abd2d917f1741ae306aa0d5309c19b45f74 (patch) | |
tree | 1639dde5e23d8b938e57616bde0ca3ca3ba777bc /llvm/lib/CodeGen/LiveInterval.cpp | |
parent | d7df935bbcc2715a219ad5ce12f4f591056b99a1 (diff) | |
download | bcm5719-llvm-88dd0abd2d917f1741ae306aa0d5309c19b45f74.tar.gz bcm5719-llvm-88dd0abd2d917f1741ae306aa0d5309c19b45f74.zip |
Pass LiveQueryResult by value
This makes the API a bit more natural to use and makes it easier to make
LiveRanges implementation details private.
llvm-svn: 192394
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index e231d2700ed..f7b5d64b100 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -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. |