summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-09 21:02:10 +0000
committerDan Gohman <gohman@apple.com>2009-10-09 21:02:10 +0000
commite19c1810d72d4d23b216595f30aaec867f024399 (patch)
tree7d5729fdc9276614988225ee7de480cfd2f2fab5 /llvm/lib/CodeGen/MachineInstr.cpp
parent7d9dffb4136892b49b523cf9bc897dd4959a5445 (diff)
downloadbcm5719-llvm-e19c1810d72d4d23b216595f30aaec867f024399.tar.gz
bcm5719-llvm-e19c1810d72d4d23b216595f30aaec867f024399.zip
isTriviallyReMaterializable checks the
TargetInstrDesc::isRematerializable flag, so it isn't necessary to do this check in its callers. llvm-svn: 83671
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 2dc99f5bb71..c4a99715e25 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -960,8 +960,7 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII,
bool MachineInstr::isSafeToReMat(const TargetInstrInfo *TII,
unsigned DstReg) const {
bool SawStore = false;
- if (!getDesc().isRematerializable() ||
- !TII->isTriviallyReMaterializable(this) ||
+ if (!TII->isTriviallyReMaterializable(this) ||
!isSafeToMove(TII, SawStore))
return false;
for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {
OpenPOWER on IntegriCloud