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/LiveRangeEdit.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/LiveRangeEdit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeEdit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp index 9c374b15019..d5990ef2486 100644 --- a/llvm/lib/CodeGen/LiveRangeEdit.cpp +++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp @@ -278,7 +278,7 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink) { // Always shrink COPY uses that probably come from live range splitting. if (MI->readsVirtualRegister(Reg) && (MI->isCopy() || MOI->isDef() || MRI.hasOneNonDBGUse(Reg) || - LiveRangeQuery(LI, Idx).isKill())) + LI.Query(Idx).isKill())) ToShrink.insert(&LI); // Remove defined value. |

