diff options
author | Matthias Braun <matze@braunis.de> | 2016-10-28 18:05:09 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-10-28 18:05:09 +0000 |
commit | 15cdf2c20bd69f987471be22432a4bbdc6b6b7c9 (patch) | |
tree | 18926b28c96ea6eab49317e30ccec4c5d21b24fe /lib/CodeGen/LiveRangeEdit.cpp | |
parent | 23ea6d343f60775e6877626fb97fca3c7bc55827 (diff) |
MachineRegisterInfo: Remove unused arg from isConstantPhysReg(); NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r-- | lib/CodeGen/LiveRangeEdit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp index bbbac4c9d1d..264e7f713b9 100644 --- a/lib/CodeGen/LiveRangeEdit.cpp +++ b/lib/CodeGen/LiveRangeEdit.cpp @@ -103,7 +103,7 @@ bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI, // We can't remat physreg uses, unless it is a constant. if (TargetRegisterInfo::isPhysicalRegister(MO.getReg())) { - if (MRI.isConstantPhysReg(MO.getReg(), *OrigMI->getParent()->getParent())) + if (MRI.isConstantPhysReg(MO.getReg())) continue; return false; } |