diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-09 21:02:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-09 21:02:10 +0000 |
commit | 599a87aca0194edb46f0bee141c3de8281bf22b9 (patch) | |
tree | 93f52d6527cc59b28dfa0cef1773c29e074cf5c9 /lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | 11596ed43c5eb3b8a49f563abdbdb7ea54fec991 (diff) |
isTriviallyReMaterializable checks the
TargetInstrDesc::isRematerializable flag, so it isn't necessary to do
this check in its callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index af3d60d3b9..21bf5ea8d0 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -646,8 +646,7 @@ bool SimpleRegisterCoalescing::ReMaterializeTrivialDef(LiveInterval &SrcInt, const TargetInstrDesc &TID = DefMI->getDesc(); if (!TID.isAsCheapAsAMove()) return false; - if (!DefMI->getDesc().isRematerializable() || - !tii_->isTriviallyReMaterializable(DefMI)) + if (!tii_->isTriviallyReMaterializable(DefMI)) return false; bool SawStore = false; if (!DefMI->isSafeToMove(tii_, SawStore)) |