summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-10-28 18:05:09 +0000
committerMatthias Braun <matze@braunis.de>2016-10-28 18:05:09 +0000
commitde8c1b343319eabf4e127077e2562635a15df580 (patch)
treeec440ce0a801d103938f4b14f00f2a92f6d984aa /llvm/lib/CodeGen/MachineSink.cpp
parent35a024fe0f11f37ed74c059a83a19a8a1dfc59b5 (diff)
downloadbcm5719-llvm-de8c1b343319eabf4e127077e2562635a15df580.tar.gz
bcm5719-llvm-de8c1b343319eabf4e127077e2562635a15df580.zip
MachineRegisterInfo: Remove unused arg from isConstantPhysReg(); NFC
llvm-svn: 285423
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 27d6c2060bc..5f87b68123f 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -636,7 +636,7 @@ MachineSinking::FindSuccToSinkTo(MachineInstr &MI, MachineBasicBlock *MBB,
// If the physreg has no defs anywhere, it's just an ambient register
// and we can freely move its uses. Alternatively, if it's allocatable,
// it could get allocated to something with a def during allocation.
- if (!MRI->isConstantPhysReg(Reg, *MBB->getParent()))
+ if (!MRI->isConstantPhysReg(Reg))
return nullptr;
} else if (!MO.isDead()) {
// A def that isn't dead. We can't move it.
OpenPOWER on IntegriCloud